Map<String, dynamic> toJson() => { if (effort != null) 'effort': effort, if (summary != null) 'summary': summary!.toJson(), };