InTotoProvenance.fromJson constructor

InTotoProvenance.fromJson(
  1. Map _json
)

Implementation

InTotoProvenance.fromJson(core.Map _json)
    : this(
        builderConfig: _json.containsKey('builderConfig')
            ? BuilderConfig.fromJson(
                _json['builderConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        materials: _json.containsKey('materials')
            ? (_json['materials'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        metadata: _json.containsKey('metadata')
            ? Metadata.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        recipe: _json.containsKey('recipe')
            ? Recipe.fromJson(
                _json['recipe'] as core.Map<core.String, core.dynamic>)
            : null,
      );