toJson method
Returns a serialized JSON structure of the model which also includes fields used by the database.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'__className__': 'serverpod_auth_core.JwtTokenInfo',
'id': id.toJson(),
'authUserId': authUserId.toJson(),
'scopeNames': scopeNames.toJson(),
if (extraClaimsJSON != null) 'extraClaimsJSON': extraClaimsJSON,
'lastUpdatedAt': lastUpdatedAt.toJson(),
'createdAt': createdAt.toJson(),
'method': method,
};
}