ChannelInfo.fromJson constructor

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

Implementation

factory ChannelInfo.fromJson(Map<String, dynamic> json) {
  return ChannelInfo(
    channelARN: json['ChannelARN'] as String?,
    channelName: json['ChannelName'] as String?,
    channelStatus: (json['ChannelStatus'] as String?)?.toStatus(),
    channelType: (json['ChannelType'] as String?)?.toChannelType(),
    creationTime: timeStampFromJson(json['CreationTime']),
    singleMasterConfiguration: json['SingleMasterConfiguration'] != null
        ? SingleMasterConfiguration.fromJson(
            json['SingleMasterConfiguration'] as Map<String, dynamic>)
        : null,
    version: json['Version'] as String?,
  );
}