OpenChannel.fromJsonAndCached constructor

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

Implementation

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