CreateIntegrationResponseResponse.fromJson constructor

CreateIntegrationResponseResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateIntegrationResponseResponse.fromJson(
    Map<String, dynamic> json) {
  return CreateIntegrationResponseResponse(
    contentHandlingStrategy: (json['contentHandlingStrategy'] as String?)
        ?.toContentHandlingStrategy(),
    integrationResponseId: json['integrationResponseId'] as String?,
    integrationResponseKey: json['integrationResponseKey'] as String?,
    responseParameters: (json['responseParameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    responseTemplates: (json['responseTemplates'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    templateSelectionExpression:
        json['templateSelectionExpression'] as String?,
  );
}