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((value) => value as core.String)
                .toList()
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value 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,
        registerFailureReason: json_.containsKey('registerFailureReason')
            ? json_['registerFailureReason'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        supportedPrivacy: json_.containsKey('supportedPrivacy')
            ? (json_['supportedPrivacy'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        transferFailureReason: json_.containsKey('transferFailureReason')
            ? json_['transferFailureReason'] as core.String
            : null,
      );