EarthoCredentials.fromJSON constructor

EarthoCredentials.fromJSON(
  1. Map<String, dynamic> json
)

Implementation

EarthoCredentials.fromJSON(Map<String, dynamic> json)
    : tokenType = json['tokenType'] ?? json['token_type'],
      refreshToken = json['refreshToken'] ?? json['refresh_token'],
      idToken = json['idToken'] ?? json['id_token'],
      scope = json['scope'],
      recoveryCode = json['recoveryCode'] ?? json['recovery_code'];