server is striped

This commit is contained in:
Alex Tran
2026-02-06 22:00:56 +00:00
parent 5ccf4a596c
commit a6ba86b04d
823 changed files with 12705 additions and 153814 deletions
+62 -62
View File
@@ -13,32 +13,26 @@ part of openapi.api;
class SessionCreateResponseDto {
/// Returns a new [SessionCreateResponseDto] instance.
SessionCreateResponseDto({
required this.appVersion,
required this.createdAt,
required this.current,
required this.deviceOS,
required this.deviceType,
this.expiresAt,
required this.id,
required this.createdAt,
required this.updatedAt,
this.expiresAt,
required this.current,
required this.deviceType,
required this.deviceOS,
required this.appVersion,
required this.isPendingSyncReset,
required this.token,
required this.updatedAt,
});
/// App version
String? appVersion;
/// Session ID
String id;
/// Creation date
String createdAt;
/// Is current session
bool current;
/// Device OS
String deviceOS;
/// Device type
String deviceType;
/// Last update date
String updatedAt;
/// Expiration date
///
@@ -49,8 +43,17 @@ class SessionCreateResponseDto {
///
String? expiresAt;
/// Session ID
String id;
/// Is current session
bool current;
/// Device type
String deviceType;
/// Device OS
String deviceOS;
/// App version
String? appVersion;
/// Is pending sync reset
bool isPendingSyncReset;
@@ -58,59 +61,56 @@ class SessionCreateResponseDto {
/// Session token
String token;
/// Last update date
String updatedAt;
@override
bool operator ==(Object other) => identical(this, other) || other is SessionCreateResponseDto &&
other.appVersion == appVersion &&
other.createdAt == createdAt &&
other.current == current &&
other.deviceOS == deviceOS &&
other.deviceType == deviceType &&
other.expiresAt == expiresAt &&
other.id == id &&
other.createdAt == createdAt &&
other.updatedAt == updatedAt &&
other.expiresAt == expiresAt &&
other.current == current &&
other.deviceType == deviceType &&
other.deviceOS == deviceOS &&
other.appVersion == appVersion &&
other.isPendingSyncReset == isPendingSyncReset &&
other.token == token &&
other.updatedAt == updatedAt;
other.token == token;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(appVersion == null ? 0 : appVersion!.hashCode) +
(createdAt.hashCode) +
(current.hashCode) +
(deviceOS.hashCode) +
(deviceType.hashCode) +
(expiresAt == null ? 0 : expiresAt!.hashCode) +
(id.hashCode) +
(createdAt.hashCode) +
(updatedAt.hashCode) +
(expiresAt == null ? 0 : expiresAt!.hashCode) +
(current.hashCode) +
(deviceType.hashCode) +
(deviceOS.hashCode) +
(appVersion == null ? 0 : appVersion!.hashCode) +
(isPendingSyncReset.hashCode) +
(token.hashCode) +
(updatedAt.hashCode);
(token.hashCode);
@override
String toString() => 'SessionCreateResponseDto[appVersion=$appVersion, createdAt=$createdAt, current=$current, deviceOS=$deviceOS, deviceType=$deviceType, expiresAt=$expiresAt, id=$id, isPendingSyncReset=$isPendingSyncReset, token=$token, updatedAt=$updatedAt]';
String toString() => 'SessionCreateResponseDto[id=$id, createdAt=$createdAt, updatedAt=$updatedAt, expiresAt=$expiresAt, current=$current, deviceType=$deviceType, deviceOS=$deviceOS, appVersion=$appVersion, isPendingSyncReset=$isPendingSyncReset, token=$token]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.appVersion != null) {
json[r'appVersion'] = this.appVersion;
} else {
// json[r'appVersion'] = null;
}
json[r'id'] = this.id;
json[r'createdAt'] = this.createdAt;
json[r'current'] = this.current;
json[r'deviceOS'] = this.deviceOS;
json[r'deviceType'] = this.deviceType;
json[r'updatedAt'] = this.updatedAt;
if (this.expiresAt != null) {
json[r'expiresAt'] = this.expiresAt;
} else {
// json[r'expiresAt'] = null;
}
json[r'id'] = this.id;
json[r'current'] = this.current;
json[r'deviceType'] = this.deviceType;
json[r'deviceOS'] = this.deviceOS;
if (this.appVersion != null) {
json[r'appVersion'] = this.appVersion;
} else {
// json[r'appVersion'] = null;
}
json[r'isPendingSyncReset'] = this.isPendingSyncReset;
json[r'token'] = this.token;
json[r'updatedAt'] = this.updatedAt;
return json;
}
@@ -123,16 +123,16 @@ class SessionCreateResponseDto {
final json = value.cast<String, dynamic>();
return SessionCreateResponseDto(
appVersion: mapValueOfType<String>(json, r'appVersion'),
createdAt: mapValueOfType<String>(json, r'createdAt')!,
current: mapValueOfType<bool>(json, r'current')!,
deviceOS: mapValueOfType<String>(json, r'deviceOS')!,
deviceType: mapValueOfType<String>(json, r'deviceType')!,
expiresAt: mapValueOfType<String>(json, r'expiresAt'),
id: mapValueOfType<String>(json, r'id')!,
createdAt: mapValueOfType<String>(json, r'createdAt')!,
updatedAt: mapValueOfType<String>(json, r'updatedAt')!,
expiresAt: mapValueOfType<String>(json, r'expiresAt'),
current: mapValueOfType<bool>(json, r'current')!,
deviceType: mapValueOfType<String>(json, r'deviceType')!,
deviceOS: mapValueOfType<String>(json, r'deviceOS')!,
appVersion: mapValueOfType<String>(json, r'appVersion'),
isPendingSyncReset: mapValueOfType<bool>(json, r'isPendingSyncReset')!,
token: mapValueOfType<String>(json, r'token')!,
updatedAt: mapValueOfType<String>(json, r'updatedAt')!,
);
}
return null;
@@ -180,15 +180,15 @@ class SessionCreateResponseDto {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'appVersion',
'createdAt',
'current',
'deviceOS',
'deviceType',
'id',
'createdAt',
'updatedAt',
'current',
'deviceType',
'deviceOS',
'appVersion',
'isPendingSyncReset',
'token',
'updatedAt',
};
}