PrivateEndpoints.fromJson constructor

PrivateEndpoints.fromJson(
  1. Object? j
)

Implementation

factory PrivateEndpoints.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return PrivateEndpoints(
    predictHttpUri: switch (json['predictHttpUri']) {
      null => '',
      Object $1 => decodeString($1),
    },
    explainHttpUri: switch (json['explainHttpUri']) {
      null => '',
      Object $1 => decodeString($1),
    },
    healthHttpUri: switch (json['healthHttpUri']) {
      null => '',
      Object $1 => decodeString($1),
    },
    serviceAttachment: switch (json['serviceAttachment']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}