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