DraftRow.fromJson constructor
- Map<
String, dynamic> json, { - ValueSerializer? serializer,
Implementation
factory DraftRow.fromJson(Map<String, dynamic> json,
{ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return DraftRow(
chatId: serializer.fromJson<String>(json['chatId']),
data: serializer.fromJson<String>(json['data']),
);
}