MailPhishing.fromJson constructor

MailPhishing.fromJson(
  1. Map _json
)

Implementation

MailPhishing.fromJson(core.Map _json)
    : this(
        domainId: _json.containsKey('domainId')
            ? DomainId.fromJson(
                _json['domainId'] as core.Map<core.String, core.dynamic>)
            : null,
        isInternal: _json.containsKey('isInternal')
            ? _json['isInternal'] as core.bool
            : null,
        maliciousEntity: _json.containsKey('maliciousEntity')
            ? MaliciousEntity.fromJson(_json['maliciousEntity']
                as core.Map<core.String, core.dynamic>)
            : null,
        messages: _json.containsKey('messages')
            ? (_json['messages'] as core.List)
                .map<GmailMessageInfo>((value) => GmailMessageInfo.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        systemActionType: _json.containsKey('systemActionType')
            ? _json['systemActionType'] as core.String
            : null,
      );