HttpEndpointRequestConfiguration.fromJson constructor

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

Implementation

factory HttpEndpointRequestConfiguration.fromJson(Map<String, dynamic> json) {
  return HttpEndpointRequestConfiguration(
    commonAttributes: (json['CommonAttributes'] as List?)
        ?.whereNotNull()
        .map((e) =>
            HttpEndpointCommonAttribute.fromJson(e as Map<String, dynamic>))
        .toList(),
    contentEncoding:
        (json['ContentEncoding'] as String?)?.toContentEncoding(),
  );
}