toJson method

Map<String, dynamic> toJson()

Serialize to a JSON-encodable map, omitting absent members.

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'id': id,
      'subject': subject,
      'issuedAt': issuedAt,
      'expiresAt': expiresAt,
      if (amr != null) 'amr': amr!,
      if (acr != null) 'acr': acr!,
      if (sessionKey != null) 'sessionKey': sessionKey!,
      if (ext != null) 'ext': ext!,
    };