CreateIndexEndpointRequest.fromJson constructor

CreateIndexEndpointRequest.fromJson(
  1. Object? j
)

Implementation

factory CreateIndexEndpointRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CreateIndexEndpointRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    indexEndpoint: switch (json['indexEndpoint']) {
      null => null,
      Object $1 => IndexEndpoint.fromJson($1),
    },
  );
}