TokenResponseModel.fromJson constructor
TokenResponseModel.fromJson(
- Map<String, dynamic> json
)
Implementation
TokenResponseModel.fromJson(Map<String, dynamic> json) {
token = json['token'];
storeId = json["store_id"] != null
? ValueParser.stringToInt(json["store_id"])
: null;
executeUrl = json['execute_url'];
tokenType = json['token_type'];
spCode = json['sp_code'] != null
? ValueParser.stringToInt(json['sp_code'])
: null;
message = json['massage'] ?? json['message'];
tokenCreateTime = json['TokenCreateTime'];
expiresIn = json['expires_in'] != null
? ValueParser.stringToInt(json['expires_in'])
: null;
}