12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- class O2CloudServer {
- String? id; // 标识ID
- String? pinyin;
- String? pinyinInitial;
- String? name; //公司名称
- String? centerHost; //对应服务端host 如 dev.platform.tech
- String? centerContext; //对应的服务端上下文 如 x_program_center
- int? centerPort; //对应的服务器port 如30080
- String? httpProtocol; //http协议 http https
- String? urlMapping; // 代理地址
- O2CloudServer(
- {this.id,
- this.pinyin,
- this.pinyinInitial,
- this.name,
- this.centerContext,
- this.centerHost,
- this.centerPort,
- this.httpProtocol,
- this.urlMapping});
- O2CloudServer.fromJson(Map<String, dynamic> jsonMap) {
- id = jsonMap['id'];
- pinyin = jsonMap['pinyin'];
- pinyinInitial = jsonMap['pinyinInitial'];
- name = jsonMap['name'];
- centerHost = jsonMap['centerHost'];
- centerContext = jsonMap['centerContext'];
- centerPort = jsonMap['centerPort'];
- httpProtocol = jsonMap['httpProtocol'];
- urlMapping = jsonMap['urlMapping'];
- }
- Map<String, dynamic> toJson() => {
- "id": id,
- "name": name,
- "pinyin": pinyin,
- "pinyinInitial": pinyinInitial,
- "centerHost": centerHost,
- "centerContext": centerContext,
- "centerPort": centerPort,
- "httpProtocol": httpProtocol,
- "urlMapping": urlMapping,
- };
- }
|