EmailTemplate.fromJson constructor

EmailTemplate.fromJson(
  1. Map _json
)

Implementation

EmailTemplate.fromJson(core.Map _json)
    : this(
        body: _json.containsKey('body') ? _json['body'] as core.String : null,
        format: _json.containsKey('format')
            ? _json['format'] as core.String
            : null,
        from: _json.containsKey('from') ? _json['from'] as core.String : null,
        fromDisplayName: _json.containsKey('fromDisplayName')
            ? _json['fromDisplayName'] as core.String
            : null,
        replyTo: _json.containsKey('replyTo')
            ? _json['replyTo'] as core.String
            : null,
        subject: _json.containsKey('subject')
            ? _json['subject'] as core.String
            : null,
      );