JwtResult.fromJson constructor
Implementation
factory JwtResult.fromJson(Map<String, dynamic> json) {
return JwtResult(
body: json['body'],
expired: json['exp'] == null
? null
: DateTime.now().add(Duration(milliseconds: json['exp'])).isBefore(DateTime.now()),
header: json['header'],
message: json['message'] ?? "Success JWT");
}