Namedetails.fromJson constructor

Namedetails.fromJson(
  1. Map<String, dynamic> json
)

Constructs a Namedetails instance from a JSON object.

Implementation

Namedetails.fromJson(Map<String, dynamic> json) {
  ref = json['ref'];
  name = json['name'];
  nameEs = json['name:es'];
  altName = json['alt_name'];
  regName = json['reg_name'];
  shortName = json['short_name'];
  officialName = json['official_name'];
}