Registration.fromJson constructor

Registration.fromJson(
  1. Map _json
)

Implementation

Registration.fromJson(core.Map _json)
    : this(
        contactSettings: _json.containsKey('contactSettings')
            ? ContactSettings.fromJson(_json['contactSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        dnsSettings: _json.containsKey('dnsSettings')
            ? DnsSettings.fromJson(
                _json['dnsSettings'] as core.Map<core.String, core.dynamic>)
            : null,
        domainName: _json.containsKey('domainName')
            ? _json['domainName'] as core.String
            : null,
        expireTime: _json.containsKey('expireTime')
            ? _json['expireTime'] as core.String
            : null,
        issues: _json.containsKey('issues')
            ? (_json['issues'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        labels: _json.containsKey('labels')
            ? (_json['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        managementSettings: _json.containsKey('managementSettings')
            ? ManagementSettings.fromJson(_json['managementSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        pendingContactSettings: _json.containsKey('pendingContactSettings')
            ? ContactSettings.fromJson(_json['pendingContactSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        state:
            _json.containsKey('state') ? _json['state'] as core.String : null,
        supportedPrivacy: _json.containsKey('supportedPrivacy')
            ? (_json['supportedPrivacy'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
      );