Locale.fromJson constructor

Locale.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory Locale.fromJson(Map<String, Object?> json) {
  return Locale(
    locale: json[r'locale'] as String?,
  );
}