We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
`class BaseUser extends Equatable { String nick; int uid; String avatar; int gender; int age;
BaseUser({this.nick, this.uid, this.avatar, this.gender, this.age}): super([nick, uid, avatar, gender, age]);
Map<String, dynamic> toJson() => serializer.toMap(this);
static final serializer = BaseUserSerializer(); static BaseUser fromMap(Map map) => serializer.fromMap(map); static BaseUser fromString(String source) { var map = json.decode(source); return map is Map ? fromMap(map) : null; }
String toString() => toJson().toString(); }`
but base_user.jser.dart method(frommap) BaseUser fromMap(Map map) { if (map == null) return null; final obj = BaseUser(); obj.nick = map['nick'] as String; obj.uid = map['uid'] as int; obj.avatar = map['avatar'] as String; obj.gender = map['gender'] as int; obj.age = map['age'] as int; return obj; }
BaseUser fromMap(Map map) { if (map == null) return null; final obj = BaseUser(); obj.nick = map['nick'] as String; obj.uid = map['uid'] as int; obj.avatar = map['avatar'] as String; obj.gender = map['gender'] as int; obj.age = map['age'] as int; return obj; }
why ---> obj.props.addAll(iterable)
sorry My English is so poor~~
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: