# newInstance method Null safety

1. @override

DocumentModel newInstance(

1. StorageConditionsModel conditions

)
override

## Implementation

    @override
    DocumentModel newInstance(StorageConditionsModel conditions) {
      return DocumentModel(
        appId: appId,
        documentID: newRandomKey(),
        description: 'New document',
        images: [],
        conditions: conditions,
      );
    }