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