AccountRow.fromJson constructor

AccountRow.fromJson(
  1. Map<String, dynamic> json, {
  2. ValueSerializer? serializer,
})

Implementation

factory AccountRow.fromJson(Map<String, dynamic> json,
    {ValueSerializer? serializer}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return AccountRow(
    id: serializer.fromJson<int>(json['id']),
    userId: serializer.fromJson<String>(json['userId']),
  );
}