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,
      );