/// User model类 /// Time: /// Copyright © 2021 liuyuqi.gov@msn.cn. All Rights Reserved. class UserModel { String userid = ""; String userName = ""; String token = ""; UserModel.fromJson(Map json) { userid = json['userid']; userName = json['userName']; token = json['token']; } Map toJson(UserModel user) { return { 'userid': userid, 'userName': userName, 'token': token, }; } } class UserEntity { List users = []; UserEntity.fromJson(Map json) { if (json['users'] != null) { users = List.empty(); json['users'].forEach((v) { users.add(UserModel.fromJson(v)); }); } } }