fromJson static method

Locale? fromJson(
  1. dynamic json
)

Implementation

static Locale? fromJson(dynamic json) =>
    json is String ? fromLanguageTag(json) : null;