mirror of
https://github.com/RxReader/wechat_kit.git
synced 2025-08-06 15:20:24 +08:00
35 lines
1.1 KiB
Dart
35 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'wechat_access_token_resp.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
WechatAccessTokenResp _$WechatAccessTokenRespFromJson(
|
|
Map<String, dynamic> json) {
|
|
return WechatAccessTokenResp(
|
|
errcode: json['errcode'] as int? ?? 0,
|
|
errmsg: json['errmsg'] as String?,
|
|
openid: json['openid'] as String?,
|
|
unionid: json['unionid'] as String?,
|
|
scope: json['scope'] as String?,
|
|
accessToken: json['access_token'] as String?,
|
|
refreshToken: json['refresh_token'] as String?,
|
|
expiresIn: json['expires_in'] as int?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$WechatAccessTokenRespToJson(
|
|
WechatAccessTokenResp instance) =>
|
|
<String, dynamic>{
|
|
'errcode': instance.errcode,
|
|
'errmsg': instance.errmsg,
|
|
'openid': instance.openid,
|
|
'unionid': instance.unionid,
|
|
'scope': instance.scope,
|
|
'access_token': instance.accessToken,
|
|
'refresh_token': instance.refreshToken,
|
|
'expires_in': instance.expiresIn,
|
|
};
|