You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.1 KiB
67 lines
1.1 KiB
import 'environment.dart';
|
|
|
|
class Application {
|
|
Application({
|
|
required this.environment,
|
|
});
|
|
Environment environment;
|
|
|
|
factory Application.fromJson(Map<String, dynamic> json) => Application(
|
|
environment: Environment.fromJson(json),
|
|
);
|
|
|
|
Map<String, dynamic> toJson() =>
|
|
<String, dynamic>{
|
|
'environment': environment,
|
|
};
|
|
}
|
|
|
|
class Localization {
|
|
Localization(
|
|
this.culture,
|
|
this.resources,
|
|
);
|
|
String culture;
|
|
List<LocalizationResource> resources;
|
|
}
|
|
|
|
class LocalizationResource {
|
|
LocalizationResource(
|
|
this.resourceName,
|
|
this.texts,
|
|
);
|
|
String resourceName;
|
|
Map<String, String> texts;
|
|
}
|
|
|
|
class SignalrMessage {
|
|
SignalrMessage(
|
|
this.method,
|
|
this.data,
|
|
);
|
|
String method;
|
|
List<Object?> data;
|
|
}
|
|
|
|
class Menu {
|
|
Menu({
|
|
required this.path,
|
|
required this.name,
|
|
required this.displayName,
|
|
this.id = 0,
|
|
this.level = 0,
|
|
this.description,
|
|
this.redirect,
|
|
this.meta,
|
|
this.children,
|
|
});
|
|
String path;
|
|
String name;
|
|
String displayName;
|
|
String? description;
|
|
String? redirect;
|
|
int level;
|
|
int id;
|
|
Map<String, dynamic>? meta;
|
|
List<Menu>? children;
|
|
}
|
|
|