GetBotChannelAssociationResponse.fromJson constructor

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

Implementation

factory GetBotChannelAssociationResponse.fromJson(Map<String, dynamic> json) {
  return GetBotChannelAssociationResponse(
    botAlias: json['botAlias'] as String?,
    botConfiguration: (json['botConfiguration'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    botName: json['botName'] as String?,
    createdDate: timeStampFromJson(json['createdDate']),
    description: json['description'] as String?,
    failureReason: json['failureReason'] as String?,
    name: json['name'] as String?,
    status: (json['status'] as String?)?.toChannelStatus(),
    type: (json['type'] as String?)?.toChannelType(),
  );
}