www_sample_accout.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /// 演示版本 获取演示服务器列表用的一些数据对象
  2. class WwwGetSampleAccountPost {
  3. String? serverId;
  4. WwwGetSampleAccountPost({this.serverId});
  5. WwwGetSampleAccountPost.fromJson(Map<String, dynamic>? map) {
  6. if (map != null) {
  7. serverId = map['serverId'];
  8. }
  9. }
  10. Map<String, dynamic> toJson() => {
  11. "serverId": serverId
  12. };
  13. }
  14. class WwwGetSampleAccounts {
  15. String? password;
  16. List<WwwGetSampleAccount>? accountList;
  17. WwwGetSampleAccounts({this.password, this.accountList});
  18. WwwGetSampleAccounts.fromJson(Map<String, dynamic>? map) {
  19. if (map != null) {
  20. password = map['password'];
  21. accountList = map['accountList'] == null
  22. ? []
  23. : List<WwwGetSampleAccount>.from(
  24. map['accountList']!.map((e) => WwwGetSampleAccount.fromJson(e)));
  25. }
  26. }
  27. }
  28. class WwwGetSampleAccount {
  29. String? name;
  30. String? account;
  31. WwwGetSampleAccount({this.name, this.account});
  32. WwwGetSampleAccount.fromJson(Map<String, dynamic>? map) {
  33. if (map != null) {
  34. name = map['name'];
  35. account = map['account'];
  36. }
  37. }
  38. }