GatewayResponse.fromJson constructor
GatewayResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GatewayResponse.fromJson(Map<String, dynamic> json) {
return GatewayResponse(
defaultResponse: json['defaultResponse'] as bool?,
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)),
responseType: (json['responseType'] as String?)?.toGatewayResponseType(),
statusCode: json['statusCode'] as String?,
);
}