fromJson static method

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

Returns a new IntrospectionResponse instance and imports its values from json if it's non-null, null if json is null.

Implementation

static IntrospectionResponse? fromJson(Map<String, dynamic>? json) => json == null
  ? null
  : IntrospectionResponse(
      active: json[r'active'],
      aud: json[r'aud'] == null
        ? null
        : (json[r'aud'] as List).cast<String>(),
      clientId: json[r'client_id'],
      exp: json[r'exp'],
      ext: IntrospectionResponseExt.fromJson(json[r'ext']),
      iat: json[r'iat'],
      iss: json[r'iss'],
      nbf: json[r'nbf'],
      tokenType: json[r'token_type'],
      username: json[r'username'],
      sub: json[r'sub'],
      jti: json[r'jti'],
  );