core.Map<core.String, core.dynamic> toJson() => { if (tax != null) 'tax': tax!, if (total != null) 'total': total!, };