toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var dateTime = this.dateTime;
  var type = this.type;
  var useCurrent = this.useCurrent;

  final json = <String, Object?>{};
  if (dateTime != null) {
    json[r'dateTime'] = dateTime;
  }
  json[r'type'] = type;
  json[r'useCurrent'] = useCurrent;
  return json;
}