JsonWebClaims.fromJson constructor

JsonWebClaims.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory JsonWebClaims.fromJson(Map<String, Object?> json) {
  var instance = _$JsonWebClaimsFromJson(json);
  final customClaims =
      json.keys.where((key) => !_standardClaims.contains(key));
  instance._customClaims
      .addEntries(customClaims.map((key) => MapEntry(key, json[key])));
  return instance;
}