UpdateIntegrationResult.fromJson constructor
UpdateIntegrationResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UpdateIntegrationResult.fromJson(Map<String, dynamic> json) {
return UpdateIntegrationResult(
apiGatewayManaged: json['apiGatewayManaged'] as bool?,
connectionId: json['connectionId'] as String?,
connectionType: (json['connectionType'] as String?)?.toConnectionType(),
contentHandlingStrategy: (json['contentHandlingStrategy'] as String?)
?.toContentHandlingStrategy(),
credentialsArn: json['credentialsArn'] as String?,
description: json['description'] as String?,
integrationId: json['integrationId'] as String?,
integrationMethod: json['integrationMethod'] as String?,
integrationResponseSelectionExpression:
json['integrationResponseSelectionExpression'] as String?,
integrationSubtype: json['integrationSubtype'] as String?,
integrationType:
(json['integrationType'] as String?)?.toIntegrationType(),
integrationUri: json['integrationUri'] as String?,
passthroughBehavior:
(json['passthroughBehavior'] as String?)?.toPassthroughBehavior(),
payloadFormatVersion: json['payloadFormatVersion'] as String?,
requestParameters: (json['requestParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
requestTemplates: (json['requestTemplates'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
responseParameters: (json['responseParameters'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(
k,
(e as Map<String, dynamic>)
.map((k, e) => MapEntry(k, e as String)))),
templateSelectionExpression:
json['templateSelectionExpression'] as String?,
timeoutInMillis: json['timeoutInMillis'] as int?,
tlsConfig: json['tlsConfig'] != null
? TlsConfig.fromJson(json['tlsConfig'] as Map<String, dynamic>)
: null,
);
}