Endpoint.fromJson constructor
Endpoint.fromJson(
- Map json_
Implementation
Endpoint.fromJson(core.Map json_)
: this(
address: json_.containsKey('address')
? json_['address'] as core.String
: null,
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
port: json_.containsKey('port') ? json_['port'] as core.int : null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
);