toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attributeName = this.attributeName;
  final deliveryMedium = this.deliveryMedium;
  return {
    if (attributeName != null) 'AttributeName': attributeName,
    if (deliveryMedium != null) 'DeliveryMedium': deliveryMedium.toValue(),
  };
}