o2_unit.dart 720 B

123456789101112131415161718192021222324
  1. class O2Unit {
  2. String? id; // 标识ID
  3. String? pinyin;
  4. String? pinyinInitial;
  5. String? name; //公司名称
  6. String? centerHost; //对应服务端host 如 dev.platform.tech
  7. String? centerContext; //对应的服务端上下文 如 x_program_center
  8. int? centerPort; //对应的服务器port 如30080
  9. String? httpProtocol; //http协议 http https
  10. O2Unit.fromJson(Map<String, dynamic> jsonMap) {
  11. id = jsonMap['id'];
  12. pinyin = jsonMap['pinyin'];
  13. pinyinInitial = jsonMap['pinyinInitial'];
  14. name = jsonMap['name'];
  15. centerHost = jsonMap['centerHost'];
  16. centerContext = jsonMap['centerContext'];
  17. centerPort = jsonMap['centerPort'];
  18. httpProtocol = jsonMap['httpProtocol'];
  19. }
  20. }