Enum.fromJson constructor
Enum.fromJson(
- Map json_
Implementation
Enum.fromJson(core.Map json_)
: this(
edition: json_.containsKey('edition')
? json_['edition'] as core.String
: null,
enumvalue: json_.containsKey('enumvalue')
? (json_['enumvalue'] as core.List)
.map((value) => EnumValue.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
options: json_.containsKey('options')
? (json_['options'] as core.List)
.map((value) => Option.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
sourceContext: json_.containsKey('sourceContext')
? SourceContext.fromJson(
json_['sourceContext'] as core.Map<core.String, core.dynamic>)
: null,
syntax: json_.containsKey('syntax')
? json_['syntax'] as core.String
: null,
);