TransferParameters.fromJson constructor

TransferParameters.fromJson(
  1. Map json_
)

Implementation

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