GroupChannel.fromJsonAndCached constructor

GroupChannel.fromJsonAndCached(
  1. Map<String, dynamic> json, {
  2. int? ts,
})

Implementation

factory GroupChannel.fromJsonAndCached(Map<String, dynamic> json, {int? ts}) {
  final channel = _$GroupChannelFromJson(json);
  channel.saveToCache();
  json.cacheMetaData(channel: channel, ts: ts);
  json.cacheDeliveryReceipt(channel);
  json.cacheReadReceipt(channel);
  return channel;
}