toJson method
Implementation
Map<String, dynamic> toJson() {
final apiKeySource = this.apiKeySource;
final binaryMediaTypes = this.binaryMediaTypes;
final createdDate = this.createdDate;
final description = this.description;
final endpointConfiguration = this.endpointConfiguration;
final id = this.id;
final minimumCompressionSize = this.minimumCompressionSize;
final name = this.name;
final version = this.version;
return {
if (apiKeySource != null) 'ApiKeySource': apiKeySource,
if (binaryMediaTypes != null) 'BinaryMediaTypes': binaryMediaTypes,
if (createdDate != null) 'CreatedDate': createdDate,
if (description != null) 'Description': description,
if (endpointConfiguration != null)
'EndpointConfiguration': endpointConfiguration,
if (id != null) 'Id': id,
if (minimumCompressionSize != null)
'MinimumCompressionSize': minimumCompressionSize,
if (name != null) 'Name': name,
if (version != null) 'Version': version,
};
}