data property

Object? get data

Response data in any format that makes sense.

SDKs should discard large and binary bodies by default. Can be given as a string or structural data of any format.

Implementation

Object? get data {
  final typedData = _data;
  if (typedData is List) {
    return List.unmodifiable(typedData);
  } else if (typedData is Map) {
    return Map.unmodifiable(typedData);
  }

  return _data;
}