DeviceNames.fromJson constructor
DeviceNames.fromJson(
- Map json_
Implementation
DeviceNames.fromJson(core.Map json_)
: this(
defaultNames: json_.containsKey('defaultNames')
? (json_['defaultNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
nicknames: json_.containsKey('nicknames')
? (json_['nicknames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
);