SendAs.fromJson constructor

SendAs.fromJson(
  1. Map json_
)

Implementation

SendAs.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        isDefault: json_.containsKey('isDefault')
            ? json_['isDefault'] as core.bool
            : null,
        isPrimary: json_.containsKey('isPrimary')
            ? json_['isPrimary'] as core.bool
            : null,
        replyToAddress: json_.containsKey('replyToAddress')
            ? json_['replyToAddress'] as core.String
            : null,
        sendAsEmail: json_.containsKey('sendAsEmail')
            ? json_['sendAsEmail'] as core.String
            : null,
        signature: json_.containsKey('signature')
            ? json_['signature'] as core.String
            : null,
        smtpMsa: json_.containsKey('smtpMsa')
            ? SmtpMsa.fromJson(
                json_['smtpMsa'] as core.Map<core.String, core.dynamic>)
            : null,
        treatAsAlias: json_.containsKey('treatAsAlias')
            ? json_['treatAsAlias'] as core.bool
            : null,
        verificationStatus: json_.containsKey('verificationStatus')
            ? json_['verificationStatus'] as core.String
            : null,
      );