getJWT property

  1. @JsonKey(toJson: toNull, fromJson: toNull, includeIfNull: false)
Future<String> Function(Map<String, dynamic>) getJWT
final

The function is used to get JWT for sensitive requests. The function should return a JWT string that is not empty, a JWT is not expired or invalid. Otherwise, the request will be rejected and the user will be notified with "Something went wrong" message during virtual try-on.

Implementation

@JsonKey(toJson: toNull, fromJson: toNull, includeIfNull: false)
final Future<String> Function(Map<String, dynamic>) getJWT;