JWTConfiguration.fromJson constructor

JWTConfiguration.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory JWTConfiguration.fromJson(Map<String, dynamic> json) {
  return JWTConfiguration(
    audience: (json['audience'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    issuer: json['issuer'] as String?,
  );
}