TokenModel.fromJson constructor

TokenModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

TokenModel.fromJson(Map<String, dynamic> json) {
  accessToken = json['access_token'];
  expiresIn = json['expires_in'];
  tokenType = json['token_type'];
  scope = json['scope'];
  error = json['error'];
}