ChannelSummary.fromJson constructor
ChannelSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ChannelSummary.fromJson(Map<String, dynamic> json) {
return ChannelSummary(
channelName: json['channelName'] as String?,
channelStorage: json['channelStorage'] != null
? ChannelStorageSummary.fromJson(
json['channelStorage'] as Map<String, dynamic>)
: null,
creationTime: timeStampFromJson(json['creationTime']),
lastMessageArrivalTime: timeStampFromJson(json['lastMessageArrivalTime']),
lastUpdateTime: timeStampFromJson(json['lastUpdateTime']),
status: (json['status'] as String?)?.toChannelStatus(),
);
}