WechatTicketResp class

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

Constructors

WechatTicketResp({required int errcode, String? errmsg, String? ticket, int? expiresIn})
const
WechatTicketResp.fromJson(Map<String, dynamic> json)
factory

Properties

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