SyncOutboxPatch constructor

SyncOutboxPatch(
  1. String id,
  2. String uid,
  3. String collection,
  4. String entityId,
  5. String payloadJson, {
  6. DateTime? createdAt,
  7. DateTime? lastAttemptAt,
  8. int attempts = 0,
})

Implementation

SyncOutboxPatch(
  String id,
  String uid,
  String collection,
  String entityId,
  String payloadJson, {
  DateTime? createdAt,
  DateTime? lastAttemptAt,
  int attempts = 0,
}) {
  if (!_defaultsSet) {
    _defaultsSet = RealmObjectBase.setDefaults<SyncOutboxPatch>({
      'attempts': 0,
    });
  }
  RealmObjectBase.set(this, '_id', id);
  RealmObjectBase.set(this, 'uid', uid);
  RealmObjectBase.set(this, 'collection', collection);
  RealmObjectBase.set(this, 'entityId', entityId);
  RealmObjectBase.set(this, 'payloadJson', payloadJson);
  RealmObjectBase.set(this, 'createdAt', createdAt);
  RealmObjectBase.set(this, 'lastAttemptAt', lastAttemptAt);
  RealmObjectBase.set(this, 'attempts', attempts);
}