mmvergara / supadart

Typesafe queries in Supabase Flutter! Generate Flutter / Dart 🎯 classes from your Supabase schema.
https://supadart.vercel.app
MIT License
43 stars 5 forks source link

typo?? jsonn #101

Open jtkeyva opened 1 month ago

jtkeyva commented 1 month ago

i generated using -s to separate files using supadart: ^1.6.5


    return AccountChannelPin(
      accountId:
          jsonn['account_id'] != null ? jsonn['account_id'].toString() : '',
      channelId:
          jsonn['channel_id'] != null ? jsonn['channel_id'].toString() : '',
      pinnedAt: jsonn['pinned_at'] != null
          ? DateTime.parse(jsonn['pinned_at'].toString())
          : DateTime.fromMillisecondsSinceEpoch(0),
      order: jsonn['order'] != null ? int.parse(jsonn['order'].toString()) : 0,
    );
  }```

was jsonn intentional for some reason?
mmvergara commented 1 month ago

thanks for opening an issue.. ahh yess, its intentional, it names collides with the json encoder package thing that is sometimes needed. ill fix it in the next patch, we'll keep this issue open until then.