fromJson static method

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

Implementation

static BaiduAuth fromJson(Map<String, dynamic> json) {
  return BaiduAuth(
    expiresIn: json['expires_in'],
    refreshToken: json['refresh_token'],
    accessToken: json['access_token'],
    sessionSecret: json['session_secret'],
    sessionKey: json['session_key'],
    scope: json['scope'],
  );
}