InTotoStatement.fromJson constructor

InTotoStatement.fromJson(
  1. Map _json
)

Implementation

InTotoStatement.fromJson(core.Map _json)
    : this(
        predicateType: _json.containsKey('predicateType')
            ? _json['predicateType'] as core.String
            : null,
        provenance: _json.containsKey('provenance')
            ? InTotoProvenance.fromJson(
                _json['provenance'] as core.Map<core.String, core.dynamic>)
            : null,
        subject: _json.containsKey('subject')
            ? (_json['subject'] as core.List)
                .map((value) => Subject.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );