v1.0.7 openai with model name and temperature
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Membership {
|
||||
late int membershipId;
|
||||
late String name;
|
||||
late String description;
|
||||
String? description;
|
||||
late int duration;
|
||||
late String durationType;
|
||||
late String durationUnit;
|
||||
@@ -12,12 +12,12 @@ class Membership {
|
||||
Membership.fromJson(Map json) {
|
||||
membershipId = json['membershipId'];
|
||||
name = json['name'];
|
||||
description = json['description'];
|
||||
description = json['description'] ?? "";
|
||||
duration = json['duration'];
|
||||
durationUnit = json['durationUnit'];
|
||||
durationType = json['durationType'];
|
||||
trainingPlanId = json['trainingPlanId'];
|
||||
trainingPlanDayIds = json['trainingPlanDayIds'];
|
||||
trainingPlanId = json['trainingPlanId'] ?? 0;
|
||||
trainingPlanDayIds = json['trainingPlanDayIds'] ?? 0;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
class OpenAI {
|
||||
late String question;
|
||||
late String modelName;
|
||||
late double temperature;
|
||||
|
||||
OpenAI(this.question, this.modelName, this.temperature);
|
||||
|
||||
OpenAI.fromJson(Map json) {
|
||||
question = json['question'];
|
||||
modelName = json['modelName'];
|
||||
temperature = json['temperature'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
"question": question,
|
||||
"modelName": modelName,
|
||||
"temperature": temperature,
|
||||
};
|
||||
|
||||
@override
|
||||
String toString() => toJson().toString();
|
||||
}
|
||||
@@ -7,11 +7,11 @@ class Product {
|
||||
late int sort;
|
||||
late int productSet;
|
||||
late DateTime validFrom;
|
||||
late DateTime? validTo;
|
||||
late String? productIdIos;
|
||||
late String? productIdAndroid;
|
||||
late double? priceIos;
|
||||
late double? priceAndroid;
|
||||
DateTime? validTo;
|
||||
String? productIdIos;
|
||||
String? productIdAndroid;
|
||||
double? priceIos;
|
||||
double? priceAndroid;
|
||||
String? localizedPrice;
|
||||
|
||||
Product.fromJson(Map json) {
|
||||
@@ -24,10 +24,10 @@ class Product {
|
||||
productSet = json['productSet'];
|
||||
validFrom = (json['validFrom'] == null ? null : DateTime.parse(json['validFrom']))!;
|
||||
validTo = json['validTo'] == null ? null : DateTime.parse(json['validTo']);
|
||||
productIdIos = json['productIdIos'];
|
||||
productIdAndroid = json['productIdAndroid'];
|
||||
priceIos = json['priceIos'];
|
||||
priceAndroid = json['priceAndroid'];
|
||||
productIdIos = json['productIdIos'] ?? 0.0;
|
||||
productIdAndroid = json['productIdAndroid'] ?? 0.0;
|
||||
priceIos = json['priceIos'] ?? 0.0;
|
||||
priceAndroid = json['priceAndroid'] ?? 0.0;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class Property {
|
||||
late int propertyId;
|
||||
late String propertyName;
|
||||
late String propertyUnit;
|
||||
late String propertyNameTranslation;
|
||||
String? propertyUnit;
|
||||
String? propertyNameTranslation;
|
||||
int? top;
|
||||
int? left;
|
||||
double? value;
|
||||
@@ -10,7 +10,7 @@ class Property {
|
||||
Property.fromJson(Map json) {
|
||||
propertyId = json['propertyId'];
|
||||
propertyName = json['propertyName'];
|
||||
propertyUnit = json['propertyUnit'];
|
||||
propertyUnit = json['propertyUnit'] ?? "";
|
||||
propertyNameTranslation =
|
||||
json['translations'] != null && (json['translations']).length > 0
|
||||
? json['translations'][0]['propertyName']
|
||||
|
||||
@@ -20,9 +20,9 @@ class TrainingPlan {
|
||||
TrainingPlan.fromJson(Map<String, dynamic> json) {
|
||||
trainingPlanId = json['trainingPlanId'];
|
||||
name = json['name'];
|
||||
type = json['type'];
|
||||
internalName = json['internalName'];
|
||||
description = json['description'];
|
||||
type = json['type'] ?? "";
|
||||
internalName = json['internalName'] ?? "";
|
||||
description = json['description'] ?? "";
|
||||
free = json['free'];
|
||||
active = json['active'];
|
||||
treeId = json['treeId'];
|
||||
|
||||
Reference in New Issue
Block a user