toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (status != null) 'status': status!.toJson(),
    if (data.isNotDefault) 'data': encodeList(data),
    if (dataKeysWithError.isNotDefault)
      'dataKeysWithError': encodeList(dataKeysWithError),
  };
}