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