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