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