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