toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final constraints = this.constraints;
  final statistics = this.statistics;
  return {
    if (constraints != null) 'Constraints': constraints,
    if (statistics != null) 'Statistics': statistics,
  };
}