Locale.fromJson constructor

Locale.fromJson(
  1. String data
)

dart:convert

Parses the string and returns the resulting Json object as Locale.

Implementation

factory Locale.fromJson(String data) {
  return Locale.fromMap(json.decode(data) as Map<String, dynamic>);
}