ChannelBan.fromJson constructor

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

Implementation

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