toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final begin = this.begin;
  final end = this.end;
  return {
    if (begin != null) 'Begin': begin,
    if (end != null) 'End': end,
  };
}