Continent.fromJson constructor

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

Creates a Continent instance from a JSON map.

Implementation

factory Continent.fromJson(Map<String, dynamic> json) {
  return Continent(
    code: json['code'] as String,
    name: json['name'] as String,
  );
}