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