toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final supportedContentTypes = this.supportedContentTypes;
final supportedInputModes = this.supportedInputModes;
final description = this.description;
final isRequired = this.isRequired;
final supportedCompressionTypes = this.supportedCompressionTypes;
return {
'Name': name,
'SupportedContentTypes': supportedContentTypes,
'SupportedInputModes':
supportedInputModes.map((e) => e.toValue()).toList(),
if (description != null) 'Description': description,
if (isRequired != null) 'IsRequired': isRequired,
if (supportedCompressionTypes != null)
'SupportedCompressionTypes':
supportedCompressionTypes.map((e) => e.toValue()).toList(),
};
}