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