ApiKeyAuthentication class

ApiKey authentication. This class is used to authenticate Aiuta using ApiKey. Please see Aiuta API documentation for instructions on how to get your API key.

Inheritance
Annotations
  • @JsonSerializable()

Constructors

ApiKeyAuthentication({required String subscriptionId, required String apiKey})
Create ApiKeyAuthentication with subscription id and api key.
ApiKeyAuthentication.fromJson(Map<String, dynamic> json)
Factory method to create ApiKeyAuthentication from json.
factory

Properties

apiKey String
ApiKey is used to authenticate secure requests.
final
hashCode int
The hash code for this object.
no setterinherited
mode AiutaAuthenticationMode
Authentication mode is used to determine the type of authentication.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionId String
Subscription id is used to authenticate insecure requests.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Method to convert ApiKeyAuthentication to json.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited