data property

dynamic get data

Submitted data in a format that makes the most sense. SDKs should discard large bodies by default. Can be given as string or structural data of any format.

Implementation

dynamic get data {
  if (_data is List) {
    return List.unmodifiable(_data);
  } else if (_data is Map) {
    return Map.unmodifiable(_data);
  }

  return _data;
}