Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @JsonSerializable()
- @GenerateTypescript()
- class DatabaseConfiguration {
- String username;
- String password;
- String host;
- num port;
- String databaseName;
- static fromJson(Map<String, dynamic> json) {
- return _$DatabaseConfigurationFromJson(json);
- }
- }
- export interface DatabaseConfiguration {
- username: string;
- password: string;
- host: string;
- port: number;
- databaseName: string;
- }
Add Comment
Please, Sign In to add comment