Country.fromJson constructor

Country.fromJson(
  1. String source
)

It converts a JSON string into a Country object.

Args: source (String): The JSON string to be converted to a Map.

Implementation

factory Country.fromJson(String source) =>
    Country.fromMap(json.decode(source) as Map<String, dynamic>);