toJSON method

  1. @override
Map<String, dynamic> toJSON()

Implementation

@override
Map<String, dynamic> toJSON() {
  Map<String, dynamic> json = {'interval': interval.toJSON()};
  if (first != null) {
    json = {...json, 'first': first?.toUtc().toIso8601String()};
  }
  return json;
}