MinecraftTokenResponse class

Annotations
  • @JsonSerializable()

Constructors

MinecraftTokenResponse.new({required String username, required List<String> roles, required String accessToken, required String tokenType, required int expiresIn})
const
MinecraftTokenResponse.fromJson(Map<String, dynamic> json)
Converts a JSON map to a MinecraftTokenResponse.
factory

Properties

accessToken String
final
expiresIn int
final
hashCode int
The hash code for this object.
no setterinherited
roles List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenType String
final
username String
final

Methods

copyWith({String? username, List<String>? roles, String? accessToken, String? tokenType, int? expiresIn}) MinecraftTokenResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this MinecraftTokenResponse to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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