|
@@ -13,12 +13,15 @@ part of openapi.api;
|
|
|
class ServerConfigDto {
|
|
|
/// Returns a new [ServerConfigDto] instance.
|
|
|
ServerConfigDto({
|
|
|
+ required this.isInitialized,
|
|
|
required this.loginPageMessage,
|
|
|
required this.mapTileUrl,
|
|
|
required this.oauthButtonText,
|
|
|
required this.trashDays,
|
|
|
});
|
|
|
|
|
|
+ bool isInitialized;
|
|
|
+
|
|
|
String loginPageMessage;
|
|
|
|
|
|
String mapTileUrl;
|
|
@@ -29,6 +32,7 @@ class ServerConfigDto {
|
|
|
|
|
|
@override
|
|
|
bool operator ==(Object other) => identical(this, other) || other is ServerConfigDto &&
|
|
|
+ other.isInitialized == isInitialized &&
|
|
|
other.loginPageMessage == loginPageMessage &&
|
|
|
other.mapTileUrl == mapTileUrl &&
|
|
|
other.oauthButtonText == oauthButtonText &&
|
|
@@ -37,16 +41,18 @@ class ServerConfigDto {
|
|
|
@override
|
|
|
int get hashCode =>
|
|
|
// ignore: unnecessary_parenthesis
|
|
|
+ (isInitialized.hashCode) +
|
|
|
(loginPageMessage.hashCode) +
|
|
|
(mapTileUrl.hashCode) +
|
|
|
(oauthButtonText.hashCode) +
|
|
|
(trashDays.hashCode);
|
|
|
|
|
|
@override
|
|
|
- String toString() => 'ServerConfigDto[loginPageMessage=$loginPageMessage, mapTileUrl=$mapTileUrl, oauthButtonText=$oauthButtonText, trashDays=$trashDays]';
|
|
|
+ String toString() => 'ServerConfigDto[isInitialized=$isInitialized, loginPageMessage=$loginPageMessage, mapTileUrl=$mapTileUrl, oauthButtonText=$oauthButtonText, trashDays=$trashDays]';
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
final json = <String, dynamic>{};
|
|
|
+ json[r'isInitialized'] = this.isInitialized;
|
|
|
json[r'loginPageMessage'] = this.loginPageMessage;
|
|
|
json[r'mapTileUrl'] = this.mapTileUrl;
|
|
|
json[r'oauthButtonText'] = this.oauthButtonText;
|
|
@@ -62,6 +68,7 @@ class ServerConfigDto {
|
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
|
|
return ServerConfigDto(
|
|
|
+ isInitialized: mapValueOfType<bool>(json, r'isInitialized')!,
|
|
|
loginPageMessage: mapValueOfType<String>(json, r'loginPageMessage')!,
|
|
|
mapTileUrl: mapValueOfType<String>(json, r'mapTileUrl')!,
|
|
|
oauthButtonText: mapValueOfType<String>(json, r'oauthButtonText')!,
|
|
@@ -113,6 +120,7 @@ class ServerConfigDto {
|
|
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
|
static const requiredKeys = <String>{
|
|
|
+ 'isInitialized',
|
|
|
'loginPageMessage',
|
|
|
'mapTileUrl',
|
|
|
'oauthButtonText',
|