toJson method

Map<String, dynamic> toJson()

Implementation

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