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. Return a JWT string that is not empty, a JWT is not expired or invalid. If throws an exception or JWT is empty, 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;