MonologRow.fromJson constructor

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

Implementation

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