Map<String, Object> get toDictionary { return { 'name': name, 'id': cardId, 'type': type, 'connected': connected, }; }