AttestationOccurrence.fromJson constructor

AttestationOccurrence.fromJson(
  1. Map _json
)

Implementation

AttestationOccurrence.fromJson(core.Map _json)
    : this(
        jwts: _json.containsKey('jwts')
            ? (_json['jwts'] as core.List)
                .map((value) => Jwt.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serializedPayload: _json.containsKey('serializedPayload')
            ? _json['serializedPayload'] as core.String
            : null,
        signatures: _json.containsKey('signatures')
            ? (_json['signatures'] as core.List)
                .map((value) => Signature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );