toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final idle = this.idle;
  final perRequest = this.perRequest;
  return {
    if (idle != null) 'idle': idle,
    if (perRequest != null) 'perRequest': perRequest,
  };
}