AwsApiGatewayRestApiDetails.fromJson constructor
AwsApiGatewayRestApiDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AwsApiGatewayRestApiDetails.fromJson(Map<String, dynamic> json) {
return AwsApiGatewayRestApiDetails(
apiKeySource: json['ApiKeySource'] as String?,
binaryMediaTypes: (json['BinaryMediaTypes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
createdDate: json['CreatedDate'] as String?,
description: json['Description'] as String?,
endpointConfiguration: json['EndpointConfiguration'] != null
? AwsApiGatewayEndpointConfiguration.fromJson(
json['EndpointConfiguration'] as Map<String, dynamic>)
: null,
id: json['Id'] as String?,
minimumCompressionSize: json['MinimumCompressionSize'] as int?,
name: json['Name'] as String?,
version: json['Version'] as String?,
);
}