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