DescribeChannelResponse.fromJson constructor

DescribeChannelResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeChannelResponse.fromJson(Map<String, dynamic> json) {
  return DescribeChannelResponse(
    channel: json['channel'] != null
        ? Channel.fromJson(json['channel'] as Map<String, dynamic>)
        : null,
    statistics: json['statistics'] != null
        ? ChannelStatistics.fromJson(
            json['statistics'] as Map<String, dynamic>)
        : null,
  );
}