RegisterParameters.fromJson constructor

RegisterParameters.fromJson(
  1. Map _json
)

Implementation

RegisterParameters.fromJson(core.Map _json)
    : this(
        availability: _json.containsKey('availability')
            ? _json['availability'] as core.String
            : null,
        domainName: _json.containsKey('domainName')
            ? _json['domainName'] as core.String
            : null,
        domainNotices: _json.containsKey('domainNotices')
            ? (_json['domainNotices'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        supportedPrivacy: _json.containsKey('supportedPrivacy')
            ? (_json['supportedPrivacy'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        yearlyPrice: _json.containsKey('yearlyPrice')
            ? Money.fromJson(
                _json['yearlyPrice'] as core.Map<core.String, core.dynamic>)
            : null,
      );