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