/* * @Author: wangyang 1147192855@qq.com * @Date: 2022-07-13 14:50:51 * @LastEditors: wangyang 1147192855@qq.com * @LastEditTime: 2022-07-13 17:22:16 * @FilePath: \marking_app\lib\common\model\UserLogin.dart * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import 'package:json_annotation/json_annotation.dart'; part 'user_login.g.dart'; @JsonSerializable(checked: true) class UserLogin extends Object { @JsonKey(name: 'access_token') String accessToken; @JsonKey(name: 'expires_in') int expiresIn; @JsonKey(name: 'token_type') String tokenType; UserLogin(this.accessToken,this.expiresIn,this.tokenType,); factory UserLogin.fromJson(Map srcJson) => _$UserLoginFromJson(srcJson); Map toJson() => _$UserLoginToJson(this); }