ChatItemViewRow.fromJson constructor

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

Implementation

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