TransferParameters.fromJson constructor

TransferParameters.fromJson(
  1. Map json_
)

Implementation

TransferParameters.fromJson(core.Map json_)
    : this(
        currentRegistrar: json_.containsKey('currentRegistrar')
            ? json_['currentRegistrar'] as core.String
            : null,
        currentRegistrarUri: json_.containsKey('currentRegistrarUri')
            ? json_['currentRegistrarUri'] as core.String
            : null,
        domainName: json_.containsKey('domainName')
            ? json_['domainName'] as core.String
            : null,
        nameServers: json_.containsKey('nameServers')
            ? (json_['nameServers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        supportedPrivacy: json_.containsKey('supportedPrivacy')
            ? (json_['supportedPrivacy'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        transferLockState: json_.containsKey('transferLockState')
            ? json_['transferLockState'] as core.String
            : null,
        yearlyPrice: json_.containsKey('yearlyPrice')
            ? Money.fromJson(
                json_['yearlyPrice'] as core.Map<core.String, core.dynamic>)
            : null,
      );