Nettoyage du client généré et verrouillage de la règle « pas de régénération »
Suppression des 14 fichiers modèle orphelins de manager_api_new/lib/model/
et de leurs 14 stubs de test. api.dart déclarait 139 `part` pour 153
fichiers : les 14 restants portaient `part of openapi.api;` sans être
listés par leur bibliothèque, donc hors du graphe de compilation. Le
compilateur ne les voyait jamais, l'analyzer les lisait — d'où les 68
erreurs de bruit qui rendaient `flutter analyze` inutilisable comme feu
vert.
Suppression de lib/api/openApiTest.dart, qui n'est pas du modèle mort mais
le déclencheur de la génération (@Openapi + build_runner). Le retirer
verrouille la règle du projet : le client s'édite à la main, et un
build_runner lancé par réflexe écrasait onboarding_api.dart, le câblage
d'AIApi et le mapping isGood → isCorrect.
Mesuré avant / après :
- flutter analyze manager_api_new : 67 → 3 issues (les 3 warnings légitimes)
- flutter analyze global : 68 erreurs de bruit → 3, toutes dans
test/widget_test.dart, cassé et connu
- flutter build web : ✅ inchangé
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
eb8e8497c8
commit
9d9f4bc395
@ -1,27 +0,0 @@
|
||||
// Openapi Generator last run: : 2026-05-07T21:23:24.036284
|
||||
import 'package:openapi_generator_annotations/openapi_generator_annotations.dart';
|
||||
|
||||
@Openapi(
|
||||
additionalProperties:
|
||||
AdditionalProperties(pubName: 'manager_api_new', pubAuthor: 'Fransolet Thomas', useEnumExtension: true),
|
||||
inputSpec: InputSpec(path: 'lib/api/swagger.yaml'),
|
||||
generatorName: Generator.dart,
|
||||
outputDirectory: 'manager_api_new')
|
||||
class Example extends OpenapiGeneratorConfig {}
|
||||
|
||||
|
||||
/*@Openapi(
|
||||
additionalProperties:
|
||||
DioProperties(pubName: 'manager_api_new', pubAuthor: 'Fransolet Thomas'),
|
||||
inputSpec:
|
||||
InputSpec(path: 'lib/api/swagger.yaml'),
|
||||
generatorName: Generator.dart,
|
||||
runSourceGenOnOutput: true,
|
||||
outputDirectory: 'manager_api_new',
|
||||
)
|
||||
class Example {}*/
|
||||
|
||||
/*
|
||||
RUN
|
||||
>flutter pub run build_runner build --delete-conflicting-outputs
|
||||
*/
|
||||
@ -1,152 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class AgendaEventStatDTO {
|
||||
/// Returns a new [AgendaEventStatDTO] instance.
|
||||
AgendaEventStatDTO({
|
||||
this.eventId,
|
||||
this.eventTitle,
|
||||
this.taps,
|
||||
});
|
||||
|
||||
String? eventId;
|
||||
|
||||
String? eventTitle;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? taps;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is AgendaEventStatDTO &&
|
||||
other.eventId == eventId &&
|
||||
other.eventTitle == eventTitle &&
|
||||
other.taps == taps;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(eventId == null ? 0 : eventId!.hashCode) +
|
||||
(eventTitle == null ? 0 : eventTitle!.hashCode) +
|
||||
(taps == null ? 0 : taps!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'AgendaEventStatDTO[eventId=$eventId, eventTitle=$eventTitle, taps=$taps]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.eventId != null) {
|
||||
json[r'eventId'] = this.eventId;
|
||||
} else {
|
||||
json[r'eventId'] = null;
|
||||
}
|
||||
if (this.eventTitle != null) {
|
||||
json[r'eventTitle'] = this.eventTitle;
|
||||
} else {
|
||||
json[r'eventTitle'] = null;
|
||||
}
|
||||
if (this.taps != null) {
|
||||
json[r'taps'] = this.taps;
|
||||
} else {
|
||||
json[r'taps'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [AgendaEventStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static AgendaEventStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "AgendaEventStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "AgendaEventStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return AgendaEventStatDTO(
|
||||
eventId: mapValueOfType<String>(json, r'eventId'),
|
||||
eventTitle: mapValueOfType<String>(json, r'eventTitle'),
|
||||
taps: mapValueOfType<int>(json, r'taps'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<AgendaEventStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <AgendaEventStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = AgendaEventStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, AgendaEventStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, AgendaEventStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = AgendaEventStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of AgendaEventStatDTO-objects as value to a dart map
|
||||
static Map<String, List<AgendaEventStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<AgendaEventStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = AgendaEventStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,330 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class AppConfigurationLinkDTOApplicationInstance {
|
||||
/// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance.
|
||||
AppConfigurationLinkDTOApplicationInstance({
|
||||
this.id,
|
||||
this.instanceId,
|
||||
this.appType,
|
||||
this.configurations = const [],
|
||||
this.mainImageId,
|
||||
this.mainImageUrl,
|
||||
this.loaderImageId,
|
||||
this.loaderImageUrl,
|
||||
this.isDate,
|
||||
this.isHour,
|
||||
this.primaryColor,
|
||||
this.secondaryColor,
|
||||
this.roundedValue,
|
||||
this.screenPercentageSectionsMainPage,
|
||||
this.isSectionImageBackground,
|
||||
this.languages = const [],
|
||||
});
|
||||
|
||||
String? id;
|
||||
|
||||
String? instanceId;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
AppType? appType;
|
||||
|
||||
List<AppConfigurationLink>? configurations;
|
||||
|
||||
String? mainImageId;
|
||||
|
||||
String? mainImageUrl;
|
||||
|
||||
String? loaderImageId;
|
||||
|
||||
String? loaderImageUrl;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isDate;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isHour;
|
||||
|
||||
String? primaryColor;
|
||||
|
||||
String? secondaryColor;
|
||||
|
||||
int? roundedValue;
|
||||
|
||||
int? screenPercentageSectionsMainPage;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? isSectionImageBackground;
|
||||
|
||||
List<String>? languages;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is AppConfigurationLinkDTOApplicationInstance &&
|
||||
other.id == id &&
|
||||
other.instanceId == instanceId &&
|
||||
other.appType == appType &&
|
||||
_deepEquality.equals(other.configurations, configurations) &&
|
||||
other.mainImageId == mainImageId &&
|
||||
other.mainImageUrl == mainImageUrl &&
|
||||
other.loaderImageId == loaderImageId &&
|
||||
other.loaderImageUrl == loaderImageUrl &&
|
||||
other.isDate == isDate &&
|
||||
other.isHour == isHour &&
|
||||
other.primaryColor == primaryColor &&
|
||||
other.secondaryColor == secondaryColor &&
|
||||
other.roundedValue == roundedValue &&
|
||||
other.screenPercentageSectionsMainPage ==
|
||||
screenPercentageSectionsMainPage &&
|
||||
other.isSectionImageBackground == isSectionImageBackground &&
|
||||
_deepEquality.equals(other.languages, languages);
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(instanceId == null ? 0 : instanceId!.hashCode) +
|
||||
(appType == null ? 0 : appType!.hashCode) +
|
||||
(configurations == null ? 0 : configurations!.hashCode) +
|
||||
(mainImageId == null ? 0 : mainImageId!.hashCode) +
|
||||
(mainImageUrl == null ? 0 : mainImageUrl!.hashCode) +
|
||||
(loaderImageId == null ? 0 : loaderImageId!.hashCode) +
|
||||
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
|
||||
(isDate == null ? 0 : isDate!.hashCode) +
|
||||
(isHour == null ? 0 : isHour!.hashCode) +
|
||||
(primaryColor == null ? 0 : primaryColor!.hashCode) +
|
||||
(secondaryColor == null ? 0 : secondaryColor!.hashCode) +
|
||||
(roundedValue == null ? 0 : roundedValue!.hashCode) +
|
||||
(screenPercentageSectionsMainPage == null
|
||||
? 0
|
||||
: screenPercentageSectionsMainPage!.hashCode) +
|
||||
(isSectionImageBackground == null
|
||||
? 0
|
||||
: isSectionImageBackground!.hashCode) +
|
||||
(languages == null ? 0 : languages!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'AppConfigurationLinkDTOApplicationInstance[id=$id, instanceId=$instanceId, appType=$appType, configurations=$configurations, mainImageId=$mainImageId, mainImageUrl=$mainImageUrl, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, isDate=$isDate, isHour=$isHour, primaryColor=$primaryColor, secondaryColor=$secondaryColor, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage, isSectionImageBackground=$isSectionImageBackground, languages=$languages]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.id != null) {
|
||||
json[r'id'] = this.id;
|
||||
} else {
|
||||
json[r'id'] = null;
|
||||
}
|
||||
if (this.instanceId != null) {
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
} else {
|
||||
json[r'instanceId'] = null;
|
||||
}
|
||||
if (this.appType != null) {
|
||||
json[r'appType'] = this.appType;
|
||||
} else {
|
||||
json[r'appType'] = null;
|
||||
}
|
||||
if (this.configurations != null) {
|
||||
json[r'configurations'] = this.configurations;
|
||||
} else {
|
||||
json[r'configurations'] = null;
|
||||
}
|
||||
if (this.mainImageId != null) {
|
||||
json[r'mainImageId'] = this.mainImageId;
|
||||
} else {
|
||||
json[r'mainImageId'] = null;
|
||||
}
|
||||
if (this.mainImageUrl != null) {
|
||||
json[r'mainImageUrl'] = this.mainImageUrl;
|
||||
} else {
|
||||
json[r'mainImageUrl'] = null;
|
||||
}
|
||||
if (this.loaderImageId != null) {
|
||||
json[r'loaderImageId'] = this.loaderImageId;
|
||||
} else {
|
||||
json[r'loaderImageId'] = null;
|
||||
}
|
||||
if (this.loaderImageUrl != null) {
|
||||
json[r'loaderImageUrl'] = this.loaderImageUrl;
|
||||
} else {
|
||||
json[r'loaderImageUrl'] = null;
|
||||
}
|
||||
if (this.isDate != null) {
|
||||
json[r'isDate'] = this.isDate;
|
||||
} else {
|
||||
json[r'isDate'] = null;
|
||||
}
|
||||
if (this.isHour != null) {
|
||||
json[r'isHour'] = this.isHour;
|
||||
} else {
|
||||
json[r'isHour'] = null;
|
||||
}
|
||||
if (this.primaryColor != null) {
|
||||
json[r'primaryColor'] = this.primaryColor;
|
||||
} else {
|
||||
json[r'primaryColor'] = null;
|
||||
}
|
||||
if (this.secondaryColor != null) {
|
||||
json[r'secondaryColor'] = this.secondaryColor;
|
||||
} else {
|
||||
json[r'secondaryColor'] = null;
|
||||
}
|
||||
if (this.roundedValue != null) {
|
||||
json[r'roundedValue'] = this.roundedValue;
|
||||
} else {
|
||||
json[r'roundedValue'] = null;
|
||||
}
|
||||
if (this.screenPercentageSectionsMainPage != null) {
|
||||
json[r'screenPercentageSectionsMainPage'] =
|
||||
this.screenPercentageSectionsMainPage;
|
||||
} else {
|
||||
json[r'screenPercentageSectionsMainPage'] = null;
|
||||
}
|
||||
if (this.isSectionImageBackground != null) {
|
||||
json[r'isSectionImageBackground'] = this.isSectionImageBackground;
|
||||
} else {
|
||||
json[r'isSectionImageBackground'] = null;
|
||||
}
|
||||
if (this.languages != null) {
|
||||
json[r'languages'] = this.languages;
|
||||
} else {
|
||||
json[r'languages'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static AppConfigurationLinkDTOApplicationInstance? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return AppConfigurationLinkDTOApplicationInstance(
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||
appType: AppType.fromJson(json[r'appType']),
|
||||
configurations:
|
||||
AppConfigurationLink.listFromJson(json[r'configurations']),
|
||||
mainImageId: mapValueOfType<String>(json, r'mainImageId'),
|
||||
mainImageUrl: mapValueOfType<String>(json, r'mainImageUrl'),
|
||||
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
|
||||
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
|
||||
isDate: mapValueOfType<bool>(json, r'isDate'),
|
||||
isHour: mapValueOfType<bool>(json, r'isHour'),
|
||||
primaryColor: mapValueOfType<String>(json, r'primaryColor'),
|
||||
secondaryColor: mapValueOfType<String>(json, r'secondaryColor'),
|
||||
roundedValue: mapValueOfType<int>(json, r'roundedValue'),
|
||||
screenPercentageSectionsMainPage:
|
||||
mapValueOfType<int>(json, r'screenPercentageSectionsMainPage'),
|
||||
isSectionImageBackground:
|
||||
mapValueOfType<bool>(json, r'isSectionImageBackground'),
|
||||
languages: json[r'languages'] is Iterable
|
||||
? (json[r'languages'] as Iterable)
|
||||
.cast<String>()
|
||||
.toList(growable: false)
|
||||
: const [],
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<AppConfigurationLinkDTOApplicationInstance> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <AppConfigurationLinkDTOApplicationInstance>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = AppConfigurationLinkDTOApplicationInstance.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, AppConfigurationLinkDTOApplicationInstance> mapFromJson(
|
||||
dynamic json) {
|
||||
final map = <String, AppConfigurationLinkDTOApplicationInstance>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value =
|
||||
AppConfigurationLinkDTOApplicationInstance.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of AppConfigurationLinkDTOApplicationInstance-objects as value to a dart map
|
||||
static Map<String, List<AppConfigurationLinkDTOApplicationInstance>>
|
||||
mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<AppConfigurationLinkDTOApplicationInstance>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] =
|
||||
AppConfigurationLinkDTOApplicationInstance.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,191 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class ContentDTOResource {
|
||||
/// Returns a new [ContentDTOResource] instance.
|
||||
ContentDTOResource({
|
||||
this.id,
|
||||
this.type,
|
||||
this.label,
|
||||
this.url,
|
||||
this.dateCreation,
|
||||
this.instanceId,
|
||||
});
|
||||
|
||||
String? id;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
ResourceType? type;
|
||||
|
||||
String? label;
|
||||
|
||||
String? url;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
DateTime? dateCreation;
|
||||
|
||||
String? instanceId;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ContentDTOResource &&
|
||||
other.id == id &&
|
||||
other.type == type &&
|
||||
other.label == label &&
|
||||
other.url == url &&
|
||||
other.dateCreation == dateCreation &&
|
||||
other.instanceId == instanceId;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id == null ? 0 : id!.hashCode) +
|
||||
(type == null ? 0 : type!.hashCode) +
|
||||
(label == null ? 0 : label!.hashCode) +
|
||||
(url == null ? 0 : url!.hashCode) +
|
||||
(dateCreation == null ? 0 : dateCreation!.hashCode) +
|
||||
(instanceId == null ? 0 : instanceId!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'ContentDTOResource[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.id != null) {
|
||||
json[r'id'] = this.id;
|
||||
} else {
|
||||
json[r'id'] = null;
|
||||
}
|
||||
if (this.type != null) {
|
||||
json[r'type'] = this.type;
|
||||
} else {
|
||||
json[r'type'] = null;
|
||||
}
|
||||
if (this.label != null) {
|
||||
json[r'label'] = this.label;
|
||||
} else {
|
||||
json[r'label'] = null;
|
||||
}
|
||||
if (this.url != null) {
|
||||
json[r'url'] = this.url;
|
||||
} else {
|
||||
json[r'url'] = null;
|
||||
}
|
||||
if (this.dateCreation != null) {
|
||||
json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String();
|
||||
} else {
|
||||
json[r'dateCreation'] = null;
|
||||
}
|
||||
if (this.instanceId != null) {
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
} else {
|
||||
json[r'instanceId'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [ContentDTOResource] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static ContentDTOResource? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "ContentDTOResource[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "ContentDTOResource[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return ContentDTOResource(
|
||||
id: mapValueOfType<String>(json, r'id'),
|
||||
type: ResourceType.fromJson(json[r'type']),
|
||||
label: mapValueOfType<String>(json, r'label'),
|
||||
url: mapValueOfType<String>(json, r'url'),
|
||||
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<ContentDTOResource> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <ContentDTOResource>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = ContentDTOResource.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, ContentDTOResource> mapFromJson(dynamic json) {
|
||||
final map = <String, ContentDTOResource>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = ContentDTOResource.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of ContentDTOResource-objects as value to a dart map
|
||||
static Map<String, List<ContentDTOResource>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<ContentDTOResource>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = ContentDTOResource.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,163 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class ContentGeoPoint {
|
||||
/// Returns a new [ContentGeoPoint] instance.
|
||||
ContentGeoPoint({
|
||||
this.resourceId,
|
||||
this.resourceType,
|
||||
this.resourceUrl,
|
||||
this.resourceName,
|
||||
});
|
||||
|
||||
String? resourceId;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
ResourceType? resourceType;
|
||||
|
||||
String? resourceUrl;
|
||||
|
||||
String? resourceName;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is ContentGeoPoint &&
|
||||
other.resourceId == resourceId &&
|
||||
other.resourceType == resourceType &&
|
||||
other.resourceUrl == resourceUrl &&
|
||||
other.resourceName == resourceName;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||
(resourceType == null ? 0 : resourceType!.hashCode) +
|
||||
(resourceUrl == null ? 0 : resourceUrl!.hashCode) +
|
||||
(resourceName == null ? 0 : resourceName!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, resourceName=$resourceName]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.resourceId != null) {
|
||||
json[r'resourceId'] = this.resourceId;
|
||||
} else {
|
||||
json[r'resourceId'] = null;
|
||||
}
|
||||
if (this.resourceType != null) {
|
||||
json[r'resourceType'] = this.resourceType;
|
||||
} else {
|
||||
json[r'resourceType'] = null;
|
||||
}
|
||||
if (this.resourceUrl != null) {
|
||||
json[r'resourceUrl'] = this.resourceUrl;
|
||||
} else {
|
||||
json[r'resourceUrl'] = null;
|
||||
}
|
||||
if (this.resourceName != null) {
|
||||
json[r'resourceName'] = this.resourceName;
|
||||
} else {
|
||||
json[r'resourceName'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [ContentGeoPoint] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static ContentGeoPoint? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "ContentGeoPoint[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "ContentGeoPoint[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return ContentGeoPoint(
|
||||
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||
resourceName: mapValueOfType<String>(json, r'resourceName'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<ContentGeoPoint> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <ContentGeoPoint>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = ContentGeoPoint.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, ContentGeoPoint> mapFromJson(dynamic json) {
|
||||
final map = <String, ContentGeoPoint>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = ContentGeoPoint.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of ContentGeoPoint-objects as value to a dart map
|
||||
static Map<String, List<ContentGeoPoint>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<ContentGeoPoint>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = ContentGeoPoint.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,175 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class DayStatDTO {
|
||||
/// Returns a new [DayStatDTO] instance.
|
||||
DayStatDTO({
|
||||
this.date,
|
||||
this.total,
|
||||
this.mobile,
|
||||
this.tablet,
|
||||
});
|
||||
|
||||
String? date;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? total;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? mobile;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? tablet;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is DayStatDTO &&
|
||||
other.date == date &&
|
||||
other.total == total &&
|
||||
other.mobile == mobile &&
|
||||
other.tablet == tablet;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(date == null ? 0 : date!.hashCode) +
|
||||
(total == null ? 0 : total!.hashCode) +
|
||||
(mobile == null ? 0 : mobile!.hashCode) +
|
||||
(tablet == null ? 0 : tablet!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'DayStatDTO[date=$date, total=$total, mobile=$mobile, tablet=$tablet]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.date != null) {
|
||||
json[r'date'] = this.date;
|
||||
} else {
|
||||
json[r'date'] = null;
|
||||
}
|
||||
if (this.total != null) {
|
||||
json[r'total'] = this.total;
|
||||
} else {
|
||||
json[r'total'] = null;
|
||||
}
|
||||
if (this.mobile != null) {
|
||||
json[r'mobile'] = this.mobile;
|
||||
} else {
|
||||
json[r'mobile'] = null;
|
||||
}
|
||||
if (this.tablet != null) {
|
||||
json[r'tablet'] = this.tablet;
|
||||
} else {
|
||||
json[r'tablet'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [DayStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static DayStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "DayStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "DayStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return DayStatDTO(
|
||||
date: mapValueOfType<String>(json, r'date'),
|
||||
total: mapValueOfType<int>(json, r'total'),
|
||||
mobile: mapValueOfType<int>(json, r'mobile'),
|
||||
tablet: mapValueOfType<int>(json, r'tablet'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<DayStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <DayStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = DayStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, DayStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, DayStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = DayStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of DayStatDTO-objects as value to a dart map
|
||||
static Map<String, List<DayStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<DayStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = DayStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,158 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class GameStatDTO {
|
||||
/// Returns a new [GameStatDTO] instance.
|
||||
GameStatDTO({
|
||||
this.gameType,
|
||||
this.completions,
|
||||
this.avgDurationSeconds,
|
||||
});
|
||||
|
||||
String? gameType;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? completions;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? avgDurationSeconds;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is GameStatDTO &&
|
||||
other.gameType == gameType &&
|
||||
other.completions == completions &&
|
||||
other.avgDurationSeconds == avgDurationSeconds;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(gameType == null ? 0 : gameType!.hashCode) +
|
||||
(completions == null ? 0 : completions!.hashCode) +
|
||||
(avgDurationSeconds == null ? 0 : avgDurationSeconds!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'GameStatDTO[gameType=$gameType, completions=$completions, avgDurationSeconds=$avgDurationSeconds]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.gameType != null) {
|
||||
json[r'gameType'] = this.gameType;
|
||||
} else {
|
||||
json[r'gameType'] = null;
|
||||
}
|
||||
if (this.completions != null) {
|
||||
json[r'completions'] = this.completions;
|
||||
} else {
|
||||
json[r'completions'] = null;
|
||||
}
|
||||
if (this.avgDurationSeconds != null) {
|
||||
json[r'avgDurationSeconds'] = this.avgDurationSeconds;
|
||||
} else {
|
||||
json[r'avgDurationSeconds'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [GameStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static GameStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "GameStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "GameStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return GameStatDTO(
|
||||
gameType: mapValueOfType<String>(json, r'gameType'),
|
||||
completions: mapValueOfType<int>(json, r'completions'),
|
||||
avgDurationSeconds: mapValueOfType<int>(json, r'avgDurationSeconds'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<GameStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <GameStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = GameStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, GameStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, GameStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = GameStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of GameStatDTO-objects as value to a dart map
|
||||
static Map<String, List<GameStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<GameStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = GameStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,121 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class LevelDTO {
|
||||
/// Returns a new [LevelDTO] instance.
|
||||
LevelDTO({
|
||||
this.label = const [],
|
||||
});
|
||||
|
||||
List<TranslationAndResourceDTO>? label;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) || other is LevelDTO && other.label == label;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(label == null ? 0 : label!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'LevelDTO[label=$label]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.label != null) {
|
||||
json[r'label'] = this.label;
|
||||
} else {
|
||||
json[r'label'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [LevelDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static LevelDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "LevelDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "LevelDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return LevelDTO(
|
||||
label: TranslationAndResourceDTO.listFromJson(json[r'label']),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<LevelDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <LevelDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = LevelDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, LevelDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, LevelDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = LevelDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of LevelDTO-objects as value to a dart map
|
||||
static Map<String, List<LevelDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<LevelDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = LevelDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class MapDTOMapProvider {
|
||||
/// Returns a new [MapDTOMapProvider] instance.
|
||||
MapDTOMapProvider();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) || other is MapDTOMapProvider;
|
||||
|
||||
@override
|
||||
String toString() => 'MapDTOMapProvider[]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [MapDTOMapProvider] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static MapDTOMapProvider? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "MapDTOMapProvider[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "MapDTOMapProvider[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return MapDTOMapProvider();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<MapDTOMapProvider> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <MapDTOMapProvider>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = MapDTOMapProvider.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, MapDTOMapProvider> mapFromJson(dynamic json) {
|
||||
final map = <String, MapDTOMapProvider>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = MapDTOMapProvider.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of MapDTOMapProvider-objects as value to a dart map
|
||||
static Map<String, List<MapDTOMapProvider>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<MapDTOMapProvider>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = MapDTOMapProvider.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class MapDTOMapType {
|
||||
/// Returns a new [MapDTOMapType] instance.
|
||||
MapDTOMapType();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) || other is MapDTOMapType;
|
||||
|
||||
@override
|
||||
String toString() => 'MapDTOMapType[]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [MapDTOMapType] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static MapDTOMapType? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "MapDTOMapType[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "MapDTOMapType[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return MapDTOMapType();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<MapDTOMapType> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <MapDTOMapType>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = MapDTOMapType.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, MapDTOMapType> mapFromJson(dynamic json) {
|
||||
final map = <String, MapDTOMapType>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = MapDTOMapType.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of MapDTOMapType-objects as value to a dart map
|
||||
static Map<String, List<MapDTOMapType>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<MapDTOMapType>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = MapDTOMapType.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,105 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class MapDTOMapTypeMapbox {
|
||||
/// Returns a new [MapDTOMapTypeMapbox] instance.
|
||||
MapDTOMapTypeMapbox();
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) || other is MapDTOMapTypeMapbox;
|
||||
|
||||
@override
|
||||
String toString() => 'MapDTOMapTypeMapbox[]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [MapDTOMapTypeMapbox] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static MapDTOMapTypeMapbox? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "MapDTOMapTypeMapbox[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "MapDTOMapTypeMapbox[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return MapDTOMapTypeMapbox();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<MapDTOMapTypeMapbox> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <MapDTOMapTypeMapbox>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = MapDTOMapTypeMapbox.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, MapDTOMapTypeMapbox> mapFromJson(dynamic json) {
|
||||
final map = <String, MapDTOMapTypeMapbox>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = MapDTOMapTypeMapbox.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of MapDTOMapTypeMapbox-objects as value to a dart map
|
||||
static Map<String, List<MapDTOMapTypeMapbox>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<MapDTOMapTypeMapbox>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = MapDTOMapTypeMapbox.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,169 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class PoiStatDTO {
|
||||
/// Returns a new [PoiStatDTO] instance.
|
||||
PoiStatDTO({
|
||||
this.geoPointId,
|
||||
this.title,
|
||||
this.taps,
|
||||
this.sectionId,
|
||||
});
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? geoPointId;
|
||||
|
||||
String? title;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? taps;
|
||||
|
||||
String? sectionId;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is PoiStatDTO &&
|
||||
other.geoPointId == geoPointId &&
|
||||
other.title == title &&
|
||||
other.taps == taps &&
|
||||
other.sectionId == sectionId;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(geoPointId == null ? 0 : geoPointId!.hashCode) +
|
||||
(title == null ? 0 : title!.hashCode) +
|
||||
(taps == null ? 0 : taps!.hashCode) +
|
||||
(sectionId == null ? 0 : sectionId!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'PoiStatDTO[geoPointId=$geoPointId, title=$title, taps=$taps, sectionId=$sectionId]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.geoPointId != null) {
|
||||
json[r'geoPointId'] = this.geoPointId;
|
||||
} else {
|
||||
json[r'geoPointId'] = null;
|
||||
}
|
||||
if (this.title != null) {
|
||||
json[r'title'] = this.title;
|
||||
} else {
|
||||
json[r'title'] = null;
|
||||
}
|
||||
if (this.taps != null) {
|
||||
json[r'taps'] = this.taps;
|
||||
} else {
|
||||
json[r'taps'] = null;
|
||||
}
|
||||
if (this.sectionId != null) {
|
||||
json[r'sectionId'] = this.sectionId;
|
||||
} else {
|
||||
json[r'sectionId'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [PoiStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static PoiStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "PoiStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "PoiStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return PoiStatDTO(
|
||||
geoPointId: mapValueOfType<int>(json, r'geoPointId'),
|
||||
title: mapValueOfType<String>(json, r'title'),
|
||||
taps: mapValueOfType<int>(json, r'taps'),
|
||||
sectionId: mapValueOfType<String>(json, r'sectionId'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<PoiStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <PoiStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = PoiStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, PoiStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, PoiStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = PoiStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of PoiStatDTO-objects as value to a dart map
|
||||
static Map<String, List<PoiStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<PoiStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = PoiStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,186 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class QuizStatDTO {
|
||||
/// Returns a new [QuizStatDTO] instance.
|
||||
QuizStatDTO({
|
||||
this.sectionId,
|
||||
this.sectionTitle,
|
||||
this.avgScore,
|
||||
this.totalQuestions,
|
||||
this.completions,
|
||||
});
|
||||
|
||||
String? sectionId;
|
||||
|
||||
String? sectionTitle;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
double? avgScore;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? totalQuestions;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? completions;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is QuizStatDTO &&
|
||||
other.sectionId == sectionId &&
|
||||
other.sectionTitle == sectionTitle &&
|
||||
other.avgScore == avgScore &&
|
||||
other.totalQuestions == totalQuestions &&
|
||||
other.completions == completions;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(sectionId == null ? 0 : sectionId!.hashCode) +
|
||||
(sectionTitle == null ? 0 : sectionTitle!.hashCode) +
|
||||
(avgScore == null ? 0 : avgScore!.hashCode) +
|
||||
(totalQuestions == null ? 0 : totalQuestions!.hashCode) +
|
||||
(completions == null ? 0 : completions!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'QuizStatDTO[sectionId=$sectionId, sectionTitle=$sectionTitle, avgScore=$avgScore, totalQuestions=$totalQuestions, completions=$completions]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.sectionId != null) {
|
||||
json[r'sectionId'] = this.sectionId;
|
||||
} else {
|
||||
json[r'sectionId'] = null;
|
||||
}
|
||||
if (this.sectionTitle != null) {
|
||||
json[r'sectionTitle'] = this.sectionTitle;
|
||||
} else {
|
||||
json[r'sectionTitle'] = null;
|
||||
}
|
||||
if (this.avgScore != null) {
|
||||
json[r'avgScore'] = this.avgScore;
|
||||
} else {
|
||||
json[r'avgScore'] = null;
|
||||
}
|
||||
if (this.totalQuestions != null) {
|
||||
json[r'totalQuestions'] = this.totalQuestions;
|
||||
} else {
|
||||
json[r'totalQuestions'] = null;
|
||||
}
|
||||
if (this.completions != null) {
|
||||
json[r'completions'] = this.completions;
|
||||
} else {
|
||||
json[r'completions'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [QuizStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static QuizStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "QuizStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "QuizStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return QuizStatDTO(
|
||||
sectionId: mapValueOfType<String>(json, r'sectionId'),
|
||||
sectionTitle: mapValueOfType<String>(json, r'sectionTitle'),
|
||||
avgScore: mapValueOfType<double>(json, r'avgScore'),
|
||||
totalQuestions: mapValueOfType<int>(json, r'totalQuestions'),
|
||||
completions: mapValueOfType<int>(json, r'completions'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<QuizStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <QuizStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = QuizStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, QuizStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, QuizStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = QuizStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of QuizStatDTO-objects as value to a dart map
|
||||
static Map<String, List<QuizStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<QuizStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = QuizStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,169 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class SectionStatDTO {
|
||||
/// Returns a new [SectionStatDTO] instance.
|
||||
SectionStatDTO({
|
||||
this.sectionId,
|
||||
this.sectionTitle,
|
||||
this.views,
|
||||
this.avgDurationSeconds,
|
||||
});
|
||||
|
||||
String? sectionId;
|
||||
|
||||
String? sectionTitle;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? views;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
int? avgDurationSeconds;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is SectionStatDTO &&
|
||||
other.sectionId == sectionId &&
|
||||
other.sectionTitle == sectionTitle &&
|
||||
other.views == views &&
|
||||
other.avgDurationSeconds == avgDurationSeconds;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(sectionId == null ? 0 : sectionId!.hashCode) +
|
||||
(sectionTitle == null ? 0 : sectionTitle!.hashCode) +
|
||||
(views == null ? 0 : views!.hashCode) +
|
||||
(avgDurationSeconds == null ? 0 : avgDurationSeconds!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'SectionStatDTO[sectionId=$sectionId, sectionTitle=$sectionTitle, views=$views, avgDurationSeconds=$avgDurationSeconds]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
if (this.sectionId != null) {
|
||||
json[r'sectionId'] = this.sectionId;
|
||||
} else {
|
||||
json[r'sectionId'] = null;
|
||||
}
|
||||
if (this.sectionTitle != null) {
|
||||
json[r'sectionTitle'] = this.sectionTitle;
|
||||
} else {
|
||||
json[r'sectionTitle'] = null;
|
||||
}
|
||||
if (this.views != null) {
|
||||
json[r'views'] = this.views;
|
||||
} else {
|
||||
json[r'views'] = null;
|
||||
}
|
||||
if (this.avgDurationSeconds != null) {
|
||||
json[r'avgDurationSeconds'] = this.avgDurationSeconds;
|
||||
} else {
|
||||
json[r'avgDurationSeconds'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [SectionStatDTO] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static SectionStatDTO? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "SectionStatDTO[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "SectionStatDTO[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return SectionStatDTO(
|
||||
sectionId: mapValueOfType<String>(json, r'sectionId'),
|
||||
sectionTitle: mapValueOfType<String>(json, r'sectionTitle'),
|
||||
views: mapValueOfType<int>(json, r'views'),
|
||||
avgDurationSeconds: mapValueOfType<int>(json, r'avgDurationSeconds'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<SectionStatDTO> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <SectionStatDTO>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = SectionStatDTO.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, SectionStatDTO> mapFromJson(dynamic json) {
|
||||
final map = <String, SectionStatDTO>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = SectionStatDTO.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of SectionStatDTO-objects as value to a dart map
|
||||
static Map<String, List<SectionStatDTO>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<SectionStatDTO>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = SectionStatDTO.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{};
|
||||
}
|
||||
@ -1,190 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
part of openapi.api;
|
||||
|
||||
class User {
|
||||
/// Returns a new [User] instance.
|
||||
User({
|
||||
required this.id,
|
||||
required this.email,
|
||||
required this.password,
|
||||
required this.lastName,
|
||||
required this.token,
|
||||
required this.instanceId,
|
||||
this.firstName,
|
||||
this.dateCreation,
|
||||
});
|
||||
|
||||
String id;
|
||||
|
||||
String email;
|
||||
|
||||
String password;
|
||||
|
||||
String lastName;
|
||||
|
||||
String token;
|
||||
|
||||
String instanceId;
|
||||
|
||||
String? firstName;
|
||||
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
DateTime? dateCreation;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is User &&
|
||||
other.id == id &&
|
||||
other.email == email &&
|
||||
other.password == password &&
|
||||
other.lastName == lastName &&
|
||||
other.token == token &&
|
||||
other.instanceId == instanceId &&
|
||||
other.firstName == firstName &&
|
||||
other.dateCreation == dateCreation;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(id.hashCode) +
|
||||
(email.hashCode) +
|
||||
(password.hashCode) +
|
||||
(lastName.hashCode) +
|
||||
(token.hashCode) +
|
||||
(instanceId.hashCode) +
|
||||
(firstName == null ? 0 : firstName!.hashCode) +
|
||||
(dateCreation == null ? 0 : dateCreation!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() =>
|
||||
'User[id=$id, email=$email, password=$password, lastName=$lastName, token=$token, instanceId=$instanceId, firstName=$firstName, dateCreation=$dateCreation]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'id'] = this.id;
|
||||
json[r'email'] = this.email;
|
||||
json[r'password'] = this.password;
|
||||
json[r'lastName'] = this.lastName;
|
||||
json[r'token'] = this.token;
|
||||
json[r'instanceId'] = this.instanceId;
|
||||
if (this.firstName != null) {
|
||||
json[r'firstName'] = this.firstName;
|
||||
} else {
|
||||
json[r'firstName'] = null;
|
||||
}
|
||||
if (this.dateCreation != null) {
|
||||
json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String();
|
||||
} else {
|
||||
json[r'dateCreation'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
/// Returns a new [User] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
static User? fromJson(dynamic value) {
|
||||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key),
|
||||
'Required key "User[$key]" is missing from JSON.');
|
||||
assert(json[key] != null,
|
||||
'Required key "User[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return User(
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
email: mapValueOfType<String>(json, r'email')!,
|
||||
password: mapValueOfType<String>(json, r'password')!,
|
||||
lastName: mapValueOfType<String>(json, r'lastName')!,
|
||||
token: mapValueOfType<String>(json, r'token')!,
|
||||
instanceId: mapValueOfType<String>(json, r'instanceId')!,
|
||||
firstName: mapValueOfType<String>(json, r'firstName'),
|
||||
dateCreation: mapDateTime(json, r'dateCreation', r''),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<User> listFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final result = <User>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
final value = User.fromJson(row);
|
||||
if (value != null) {
|
||||
result.add(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result.toList(growable: growable);
|
||||
}
|
||||
|
||||
static Map<String, User> mapFromJson(dynamic json) {
|
||||
final map = <String, User>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
for (final entry in json.entries) {
|
||||
final value = User.fromJson(entry.value);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// maps a json object with a list of User-objects as value to a dart map
|
||||
static Map<String, List<User>> mapListFromJson(
|
||||
dynamic json, {
|
||||
bool growable = false,
|
||||
}) {
|
||||
final map = <String, List<User>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
map[entry.key] = User.listFromJson(
|
||||
entry.value,
|
||||
growable: growable,
|
||||
);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'id',
|
||||
'email',
|
||||
'password',
|
||||
'lastName',
|
||||
'token',
|
||||
'instanceId',
|
||||
};
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for AgendaEventStatDTO
|
||||
void main() {
|
||||
// final instance = AgendaEventStatDTO();
|
||||
|
||||
group('test AgendaEventStatDTO', () {
|
||||
// String eventId
|
||||
test('to test the property `eventId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String eventTitle
|
||||
test('to test the property `eventTitle`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int taps
|
||||
test('to test the property `taps`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,99 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for AppConfigurationLinkDTOApplicationInstance
|
||||
void main() {
|
||||
// final instance = AppConfigurationLinkDTOApplicationInstance();
|
||||
|
||||
group('test AppConfigurationLinkDTOApplicationInstance', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instanceId
|
||||
test('to test the property `instanceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// AppType appType
|
||||
test('to test the property `appType`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<AppConfigurationLink> configurations (default value: const [])
|
||||
test('to test the property `configurations`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String mainImageId
|
||||
test('to test the property `mainImageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String mainImageUrl
|
||||
test('to test the property `mainImageUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageId
|
||||
test('to test the property `loaderImageId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String loaderImageUrl
|
||||
test('to test the property `loaderImageUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isDate
|
||||
test('to test the property `isDate`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isHour
|
||||
test('to test the property `isHour`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String primaryColor
|
||||
test('to test the property `primaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String secondaryColor
|
||||
test('to test the property `secondaryColor`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int roundedValue
|
||||
test('to test the property `roundedValue`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int screenPercentageSectionsMainPage
|
||||
test('to test the property `screenPercentageSectionsMainPage`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// bool isSectionImageBackground
|
||||
test('to test the property `isSectionImageBackground`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<String> languages (default value: const [])
|
||||
test('to test the property `languages`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,49 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for ContentDTOResource
|
||||
void main() {
|
||||
// final instance = ContentDTOResource();
|
||||
|
||||
group('test ContentDTOResource', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ResourceType type
|
||||
test('to test the property `type`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String label
|
||||
test('to test the property `label`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String url
|
||||
test('to test the property `url`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime dateCreation
|
||||
test('to test the property `dateCreation`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instanceId
|
||||
test('to test the property `instanceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for ContentGeoPoint
|
||||
void main() {
|
||||
// final instance = ContentGeoPoint();
|
||||
|
||||
group('test ContentGeoPoint', () {
|
||||
// String resourceId
|
||||
test('to test the property `resourceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// ResourceType resourceType
|
||||
test('to test the property `resourceType`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String resourceUrl
|
||||
test('to test the property `resourceUrl`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String latitude
|
||||
test('to test the property `latitude`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for DayStatDTO
|
||||
void main() {
|
||||
// final instance = DayStatDTO();
|
||||
|
||||
group('test DayStatDTO', () {
|
||||
// String date
|
||||
test('to test the property `date`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int total
|
||||
test('to test the property `total`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int mobile
|
||||
test('to test the property `mobile`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int tablet
|
||||
test('to test the property `tablet`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for GameStatDTO
|
||||
void main() {
|
||||
// final instance = GameStatDTO();
|
||||
|
||||
group('test GameStatDTO', () {
|
||||
// String gameType
|
||||
test('to test the property `gameType`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int completions
|
||||
test('to test the property `completions`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int avgDurationSeconds
|
||||
test('to test the property `avgDurationSeconds`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,34 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for LevelDTO
|
||||
void main() {
|
||||
// final instance = LevelDTO();
|
||||
|
||||
group('test LevelDTO', () {
|
||||
// List<TranslationDTO> label (default value: const [])
|
||||
test('to test the property `label`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String resourceId
|
||||
test('to test the property `resourceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String source_
|
||||
test('to test the property `source_`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for MapDTOMapProvider
|
||||
void main() {
|
||||
// final instance = MapDTOMapProvider();
|
||||
|
||||
group('test MapDTOMapProvider', () {});
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for MapDTOMapTypeMapbox
|
||||
void main() {
|
||||
// final instance = MapDTOMapTypeMapbox();
|
||||
|
||||
group('test MapDTOMapTypeMapbox', () {});
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for MapDTOMapType
|
||||
void main() {
|
||||
// final instance = MapDTOMapType();
|
||||
|
||||
group('test MapDTOMapType', () {});
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for PoiStatDTO
|
||||
void main() {
|
||||
// final instance = PoiStatDTO();
|
||||
|
||||
group('test PoiStatDTO', () {
|
||||
// int geoPointId
|
||||
test('to test the property `geoPointId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String title
|
||||
test('to test the property `title`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int taps
|
||||
test('to test the property `taps`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sectionId
|
||||
test('to test the property `sectionId`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for QuizStatDTO
|
||||
void main() {
|
||||
// final instance = QuizStatDTO();
|
||||
|
||||
group('test QuizStatDTO', () {
|
||||
// String sectionId
|
||||
test('to test the property `sectionId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sectionTitle
|
||||
test('to test the property `sectionTitle`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// double avgScore
|
||||
test('to test the property `avgScore`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int totalQuestions
|
||||
test('to test the property `totalQuestions`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int completions
|
||||
test('to test the property `completions`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,39 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.18
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for SectionStatDTO
|
||||
void main() {
|
||||
// final instance = SectionStatDTO();
|
||||
|
||||
group('test SectionStatDTO', () {
|
||||
// String sectionId
|
||||
test('to test the property `sectionId`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String sectionTitle
|
||||
test('to test the property `sectionTitle`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int views
|
||||
test('to test the property `views`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// int avgDurationSeconds
|
||||
test('to test the property `avgDurationSeconds`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
@ -1,59 +0,0 @@
|
||||
//
|
||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
||||
//
|
||||
// @dart=2.12
|
||||
|
||||
// ignore_for_file: unused_element, unused_import
|
||||
// ignore_for_file: always_put_required_named_parameters_first
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: lines_longer_than_80_chars
|
||||
|
||||
import 'package:manager_api_new/api.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// tests for User
|
||||
void main() {
|
||||
// final instance = User();
|
||||
|
||||
group('test User', () {
|
||||
// String id
|
||||
test('to test the property `id`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String email
|
||||
test('to test the property `email`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String password
|
||||
test('to test the property `password`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String firstName
|
||||
test('to test the property `firstName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String lastName
|
||||
test('to test the property `lastName`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String token
|
||||
test('to test the property `token`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// DateTime dateCreation
|
||||
test('to test the property `dateCreation`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// String instanceId
|
||||
test('to test the property `instanceId`', () async {
|
||||
// TODO
|
||||
});
|
||||
});
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user