DomainPrice.fromMap constructor
DomainPrice.fromMap(
- Map<String, dynamic> map
)
Implementation
factory DomainPrice.fromMap(
Map<String, dynamic> map,
) {
map = {
'domain': "",
'tld': "",
'available': false,
'periodYears': 1,
'premium': false,
'renewalPeriodYears': 1,
...map,
};
return DomainPrice(
domain: map['domain'].toString(),
tld: map['tld'].toString(),
available: map['available'],
price: map['price']?.toDouble(),
periodYears: map['periodYears'],
premium: map['premium'],
renewalPrice: map['renewalPrice']?.toDouble(),
renewalPeriodYears: map['renewalPeriodYears'],
);
}