toJson method
Implementation
Map<String, dynamic> toJson() {
final subscribers = this.subscribers;
final dataTransferSubscriberFeePercent =
this.dataTransferSubscriberFeePercent;
final description = this.description;
final encryption = this.encryption;
final entitlementStatus = this.entitlementStatus;
final name = this.name;
return {
'subscribers': subscribers,
if (dataTransferSubscriberFeePercent != null)
'dataTransferSubscriberFeePercent': dataTransferSubscriberFeePercent,
if (description != null) 'description': description,
if (encryption != null) 'encryption': encryption,
if (entitlementStatus != null)
'entitlementStatus': entitlementStatus.toValue(),
if (name != null) 'name': name,
};
}