CreateRagDataSchemaRequest.fromJson constructor

CreateRagDataSchemaRequest.fromJson(
  1. Object? j
)

Implementation

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