toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final phoneNumberId = this.phoneNumberId;
  final callingName = this.callingName;
  final productType = this.productType;
  return {
    'PhoneNumberId': phoneNumberId,
    if (callingName != null) 'CallingName': callingName,
    if (productType != null) 'ProductType': productType.toValue(),
  };
}