JwtPayload.fromJson constructor
Implementation
factory JwtPayload.fromJson(Map<String, dynamic> json) {
json = json.clone();
return JwtPayload(
iss: json['iss'],
sub: json['sub'],
aud: json['aud'],
exp: json['exp'],
iat: json['iat'],
nbf: json['nbf'],
jti: json['jti'],
name: json['name'],
customClaims: json
..removeWhere((k, v) => [
'name',
'jti',
'nbf',
'iat',
'iss',
'sub',
'aud',
'exp',
].contains(k)));
}