toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      if (start != null) "start": start,
      if (end != null) "end": end,
    };