$Recipe.fromJson constructor Null safety

$Recipe.fromJson(
  1. Map _json
)

Implementation

$Recipe.fromJson(core.Map _json)
    : this(
        arguments: _json.containsKey('arguments')
            ? (_json['arguments'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .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((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );