BadWhitelist.fromJson constructor

BadWhitelist.fromJson(
  1. Map _json
)

Implementation

BadWhitelist.fromJson(core.Map _json)
    : this(
        domainId: _json.containsKey('domainId')
            ? DomainId.fromJson(
                _json['domainId'] as core.Map<core.String, core.dynamic>)
            : 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,
        sourceIp: _json.containsKey('sourceIp')
            ? _json['sourceIp'] as core.String
            : null,
      );