DraftRow.fromJson constructor

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

Implementation

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