RdapResponse.fromJson constructor

RdapResponse.fromJson(
  1. Map json_
)

Implementation

RdapResponse.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? (json_['description'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        errorCode: json_.containsKey('errorCode')
            ? json_['errorCode'] as core.int
            : null,
        jsonResponse: json_.containsKey('jsonResponse')
            ? HttpBody.fromJson(
                json_['jsonResponse'] as core.Map<core.String, core.dynamic>)
            : null,
        lang: json_.containsKey('lang') ? json_['lang'] as core.String : null,
        notices: json_.containsKey('notices')
            ? (json_['notices'] as core.List)
                .map((value) => Notice.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rdapConformance: json_.containsKey('rdapConformance')
            ? (json_['rdapConformance'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );