Locale.fromJson constructor
Locale.fromJson(
- Map _json
Implementation
Locale.fromJson(core.Map _json)
: this(
id: _json.containsKey('id') ? _json['id'] as core.String : null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
region: _json.containsKey('region')
? _json['region'] as core.String
: null,
tags: _json.containsKey('tags')
? (_json['tags'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);