SlashCommandMetadata.fromJson constructor
SlashCommandMetadata.fromJson(
- Map json_
Implementation
SlashCommandMetadata.fromJson(core.Map json_)
: this(
bot: json_.containsKey('bot')
? User.fromJson(
json_['bot'] as core.Map<core.String, core.dynamic>)
: null,
commandId: json_.containsKey('commandId')
? json_['commandId'] as core.String
: null,
commandName: json_.containsKey('commandName')
? json_['commandName'] as core.String
: null,
triggersDialog: json_.containsKey('triggersDialog')
? json_['triggersDialog'] as core.bool
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);