parse static method

PayPalAccessToken parse(
  1. Map<String, dynamic> parsedJSON
)

Implementation

static PayPalAccessToken parse(Map<String,dynamic> parsedJSON){
  return PayPalAccessToken(
    scope: parsedJSON["scope"],
    access_token: parsedJSON["access_token"],
    token_type: parsedJSON["token_type"],
    app_id: parsedJSON["app_id"],
    expires_in: Duration(
      seconds: parsedJSON["expires_in"],
    ),
    nonce: parsedJSON["nonce"],
  );
}