OAuth2Configuration.fromJson constructor

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

Implementation

factory OAuth2Configuration.fromJson(Map<String, dynamic> json) {
  return OAuth2Configuration(
    clientID: json['client_id'],
    authorizationEndpoint: json['authorizationEndpoint'],
    tokenEndpoint: json['tokenEndpoint'],
    clientSecret: json['clientSecret'],
    scopes: List<String>.from(json['scopes']),
  );
}