IndexPrivateEndpoints.fromJson constructor
IndexPrivateEndpoints.fromJson(
- Object? j
Implementation
factory IndexPrivateEndpoints.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return IndexPrivateEndpoints(
matchGrpcAddress: switch (json['matchGrpcAddress']) {
null => '',
Object $1 => decodeString($1),
},
serviceAttachment: switch (json['serviceAttachment']) {
null => '',
Object $1 => decodeString($1),
},
pscAutomatedEndpoints: switch (json['pscAutomatedEndpoints']) {
null => [],
List<Object?> $1 => [
for (final i in $1) PscAutomatedEndpoints.fromJson(i),
],
_ => throw const FormatException(
'"pscAutomatedEndpoints" is not a list',
),
},
);
}