toJson method

dynamic toJson()

Implementation

toJson() {
  final Map<String, dynamic> responseData = <String, dynamic>{};
  if (version != null) {
    responseData['version'] = version;
  }
  if (platform != null) {
    responseData['platform'] = platform;
  }
  responseData['businessID'] = businessID;
  responseData['data'] = data.toJson();
  return responseData;
}