fromJson static method

AccessTokenResult? fromJson(
  1. Map<String, dynamic>? map
)

Implementation

static AccessTokenResult? fromJson(Map<String, dynamic>? map){
  if(map == null){
    return null;
  }

  return new AccessTokenResult(
    accessToken: map['access_token'] as String,
    tokenType: map['token_type'] as String,
    expiresIn: map['expires_in'] as int
  );
}