Domain.fromJson constructor
Obter os dados por um json.
Implementation
factory Domain.fromJson(Map<String, dynamic> json) {
return Domain(
statusCode: json['status_code'] as int?,
status: json['status'].toString(),
fqdn: json['fqdn'].toString(),
suggestions: json['suggestions'] as List?,
hosts: json['hosts'] as List?,
publicationStatus: json['publication-status'].toString(),
expiresAt: json['expires-at'].toString(),
reasons: json['reasons'] as List?,
errors: {
'message': json['message'],
'type': json['type'],
'name': json['name'],
},
);
}