WechatUserInfoResp class

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true, fieldRename: FieldRename.snake)

Constructors

WechatUserInfoResp({required int errcode, String? errmsg, String? openid, String? nickname, int? sex, String? province, String? city, String? country, String? headimgurl, List? privilege, String? unionid})
const
WechatUserInfoResp.fromJson(Map<String, dynamic> json)
factory

Properties

city String?
final
country String?
final
errcode int
-1 系统繁忙,此时请开发者稍候再试 0 请求成功 40001 AppSecret错误或者AppSecret不属于这个公众号,请开发者确认AppSecret的正确性 40002 请确保grant_type字段值为client_credential 40164 调用接口的IP地址不在白名单中,请在接口IP白名单中进行设置。(小程序及小游戏调用不要求IP地址在白名单内。)
finalinherited
errmsg String?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headimgurl String?
final
isFemale bool
no setter
isMale bool
no setter
isSuccessful bool
no setterinherited
nickname String?
final
openid String?
final
privilege List?
final
province String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sex int?
final
unionid String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited