toJson method

Map<String, dynamic> toJson ()

Returns the JSON representation.

Implementation

toJson() {
  final j = super.toJson();
  j['data'] = data;
  if (_included.isNotEmpty) j['included'] = _included;
  return j;
}