Version.fromJson constructor
Version.fromJson(
- Map json_
Implementation
Version.fromJson(core.Map json_)
: this(
availableFeatures: json_.containsKey('availableFeatures')
? (json_['availableFeatures'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
defaultVersion: json_.containsKey('defaultVersion')
? json_['defaultVersion'] as core.bool
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
versionNumber: json_.containsKey('versionNumber')
? json_['versionNumber'] as core.String
: null,
);