Map<String, Object?> toJson() => { _identifierKey: identifier.toJson(), if (loadingUnit != null) _loadingUnitKey: loadingUnit, };