Signature.fromJson constructor

Signature.fromJson(
  1. Map json_
)

Implementation

Signature.fromJson(core.Map json_)
    : this(
        image: json_.containsKey('image')
            ? Image.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        signatureTime: json_.containsKey('signatureTime')
            ? json_['signatureTime'] as core.String
            : null,
        userId: json_.containsKey('userId')
            ? json_['userId'] as core.String
            : null,
      );