ChatCredentialsRow.fromJson constructor

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

Implementation

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