Converts to a map value
Map<String, dynamic> toMap() { return <String, dynamic>{ 'Quantity': quantity, 'Line': line?.map((x) => x.toMap()).toList(), 'GroupItemRef': groupItemRef?.toMap(), }; }