toJson method

Map<String, dynamic> toJson()

Converts BotName to JSON

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
  };
}