toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (databaseID != null) _result.addAll({"databaseID": databaseID});
  if (version != null) _result.addAll({"version": version});
  if (date != null) _result.addAll({"date": date});
  if (databaseDescription != null) _result.addAll({"databaseDescription": databaseDescription});
  if (countriesNumber != null) _result.addAll({"countriesNumber": countriesNumber});
  if (documentsNumber != null) _result.addAll({"documentsNumber": documentsNumber});
  if (size != null) _result.addAll({"size": size});

  return _result;
}