Map<String, Object?> toJson() => { 'id': id, 'claims': claims.map((key, value) => MapEntry(key, value.toJson())), 'revision': revision, };