Metadata.fromJson constructor

Metadata.fromJson(
  1. Map _json
)

Implementation

Metadata.fromJson(core.Map _json)
    : this(
        buildFinishedOn: _json.containsKey('buildFinishedOn')
            ? _json['buildFinishedOn'] as core.String
            : null,
        buildInvocationId: _json.containsKey('buildInvocationId')
            ? _json['buildInvocationId'] as core.String
            : null,
        buildStartedOn: _json.containsKey('buildStartedOn')
            ? _json['buildStartedOn'] as core.String
            : null,
        completeness: _json.containsKey('completeness')
            ? Completeness.fromJson(
                _json['completeness'] as core.Map<core.String, core.dynamic>)
            : null,
        reproducible: _json.containsKey('reproducible')
            ? _json['reproducible'] as core.bool
            : null,
      );