RunDetails.fromJson constructor

RunDetails.fromJson(
  1. Map json_
)

Implementation

RunDetails.fromJson(core.Map json_)
    : this(
        builder: json_.containsKey('builder')
            ? ProvenanceBuilder.fromJson(
                json_['builder'] as core.Map<core.String, core.dynamic>)
            : null,
        byproducts: json_.containsKey('byproducts')
            ? (json_['byproducts'] as core.List)
                .map((value) => ResourceDescriptor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? BuildMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
      );