BotMetadata.fromJson constructor

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

Implementation

factory BotMetadata.fromJson(Map<String, dynamic> json) {
  return BotMetadata(
    createdDate: timeStampFromJson(json['createdDate']),
    description: json['description'] as String?,
    lastUpdatedDate: timeStampFromJson(json['lastUpdatedDate']),
    name: json['name'] as String?,
    status: (json['status'] as String?)?.toStatus(),
    version: json['version'] as String?,
  );
}