Recipe.fromJson constructor
Recipe.fromJson(
- Map _json
Implementation
Recipe.fromJson(core.Map _json)
: this(
arguments: _json.containsKey('arguments')
? (_json['arguments'] as core.List)
.map<core.Map<core.String, core.Object>>((value) =>
(value as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.Object,
),
))
.toList()
: null,
definedInMaterial: _json.containsKey('definedInMaterial')
? _json['definedInMaterial'] as core.String
: null,
entryPoint: _json.containsKey('entryPoint')
? _json['entryPoint'] as core.String
: null,
environment: _json.containsKey('environment')
? (_json['environment'] as core.List)
.map<core.Map<core.String, core.Object>>((value) =>
(value as core.Map<core.String, core.dynamic>).map(
(key, item) => core.MapEntry(
key,
item as core.Object,
),
))
.toList()
: null,
type: _json.containsKey('type') ? _json['type'] as core.String : null,
);