GenericSignedAttestation.fromJson constructor

GenericSignedAttestation.fromJson(
  1. Map _json
)

Implementation

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