Country.fromJson constructor

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

Creates class instance from JSON Object that can be returned by Android or iOS agent, or can be a serialization result

Implementation

Country.fromJson(Map<String, dynamic> json)
    : code = json['code'],
      name = json['name'];