IntegrationResponse.fromJson constructor

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

Implementation

factory IntegrationResponse.fromJson(Map<String, dynamic> json) {
  return IntegrationResponse(
    integrationResponseKey: json['integrationResponseKey'] as String,
    contentHandlingStrategy: (json['contentHandlingStrategy'] as String?)
        ?.toContentHandlingStrategy(),
    integrationResponseId: json['integrationResponseId'] 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?,
  );
}