BotChannelAssociation.fromJson constructor
BotChannelAssociation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BotChannelAssociation.fromJson(Map<String, dynamic> json) {
return BotChannelAssociation(
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(),
);
}