createMessageHeadersFromJson static method

MessageHeaders? createMessageHeadersFromJson(
  1. dynamic jsonData
)

Implementation

static MessageHeaders? createMessageHeadersFromJson(dynamic jsonData) {
  if (jsonData == null) {
    return null;
  } else {
    final _headers1 = new Map<String, String>.from(jsonData);
    final headers = MessageHeaders();
    _headers1.forEach((key, value) {
      headers.setHeaderValue(key, value);
    });
    return headers;
  }
}