fromJsonWithChat static method

GroupChannelChangeLogs fromJsonWithChat(
  1. Chat chat,
  2. Map<String, dynamic> json
)

Implementation

static GroupChannelChangeLogs fromJsonWithChat(Chat chat, Map<String, dynamic> json) {
  final res = _$GroupChannelChangeLogsFromJson(json);

  for (final channel in res.updatedChannels) {
    channel.set(chat);
  }
  return res;
}