fromJson static method
Implementation
static ApplicationCommandOption fromJson(Map<String, dynamic> json) {
return ApplicationCommandOption(
type: ApplicationCommandOptionType.forValue(json['type']),
name: json['name'],
description: json['description'],
required: json['required'],
choices: fromArray(
ApplicationCommandOptionChoice.fromJson,
json['choices'],
),
options: fromArray(ApplicationCommandOption.fromJson, json['options']),
);
}