Node.fromJson constructor
Node.fromJson(
- Map json_
Implementation
Node.fromJson(core.Map json_)
: this(
buildVersion: json_.containsKey('buildVersion')
? json_['buildVersion'] as core.String
: null,
clientFeatures: json_.containsKey('clientFeatures')
? (json_['clientFeatures'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
cluster: json_.containsKey('cluster')
? json_['cluster'] as core.String
: null,
extensions: json_.containsKey('extensions')
? (json_['extensions'] as core.List)
.map((value) => Extension.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
listeningAddresses: json_.containsKey('listeningAddresses')
? (json_['listeningAddresses'] as core.List)
.map((value) => Address.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locality: json_.containsKey('locality')
? Locality.fromJson(
json_['locality'] as core.Map<core.String, core.dynamic>)
: null,
metadata: json_.containsKey('metadata')
? json_['metadata'] as core.Map<core.String, core.dynamic>
: null,
userAgentBuildVersion: json_.containsKey('userAgentBuildVersion')
? BuildVersion.fromJson(json_['userAgentBuildVersion']
as core.Map<core.String, core.dynamic>)
: null,
userAgentName: json_.containsKey('userAgentName')
? json_['userAgentName'] as core.String
: null,
userAgentVersion: json_.containsKey('userAgentVersion')
? json_['userAgentVersion'] as core.String
: null,
);