Bot.fromJson constructor

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

Implementation

factory Bot.fromJson(Map<String, dynamic> json) {
  return Bot(
    botEmail: json['BotEmail'] as String?,
    botId: json['BotId'] as String?,
    botType: (json['BotType'] as String?)?.toBotType(),
    createdTimestamp: timeStampFromJson(json['CreatedTimestamp']),
    disabled: json['Disabled'] as bool?,
    displayName: json['DisplayName'] as String?,
    securityToken: json['SecurityToken'] as String?,
    updatedTimestamp: timeStampFromJson(json['UpdatedTimestamp']),
    userId: json['UserId'] as String?,
  );
}