Envelope.fromJson constructor

Envelope.fromJson(
  1. Map _json
)

Implementation

Envelope.fromJson(core.Map _json)
    : this(
        payload: _json.containsKey('payload')
            ? _json['payload'] as core.String
            : null,
        payloadType: _json.containsKey('payloadType')
            ? _json['payloadType'] as core.String
            : null,
        signatures: _json.containsKey('signatures')
            ? (_json['signatures'] as core.List)
                .map((value) => EnvelopeSignature.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );