CreateRouteResponseResponse.fromJson constructor

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

Implementation

factory CreateRouteResponseResponse.fromJson(Map<String, dynamic> json) {
  return CreateRouteResponseResponse(
    modelSelectionExpression: json['modelSelectionExpression'] as String?,
    responseModels: (json['responseModels'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    responseParameters: (json['responseParameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(
            k, ParameterConstraints.fromJson(e as Map<String, dynamic>))),
    routeResponseId: json['routeResponseId'] as String?,
    routeResponseKey: json['routeResponseKey'] as String?,
  );
}