ChannelModerator.fromJson constructor

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

Implementation

factory ChannelModerator.fromJson(Map<String, dynamic> json) {
  return ChannelModerator(
    channelArn: json['ChannelArn'] as String?,
    createdBy: json['CreatedBy'] != null
        ? Identity.fromJson(json['CreatedBy'] as Map<String, dynamic>)
        : null,
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    moderator: json['Moderator'] != null
        ? Identity.fromJson(json['Moderator'] as Map<String, dynamic>)
        : null,
  );
}