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,
      );