toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.in_ != null) {
    json[r'in'] = this.in_;
  } else {
    json[r'in'] = null;
  }
  if (this.before != null) {
    json[r'before'] = this.before!.toUtc().toIso8601String();
  } else {
    json[r'before'] = null;
  }
  if (this.after != null) {
    json[r'after'] = this.after!.toUtc().toIso8601String();
  } else {
    json[r'after'] = null;
  }
  return json;
}