Lasa2 / stibu

Other
0 stars 0 forks source link

Refactor toAppwrite method to include isChild parameter #9

Closed Lasa2 closed 2 months ago

Lasa2 commented 2 months ago

This pull request refactors the toAppwrite method in the appwrite.models.dart file to include an isChild parameter. This parameter is used to determine whether or not to include the document ID on relationships. Additionally, the generateRelationshipToAppwriteField function in the attributes.dart file is updated to pass the isChild parameter when calling the toAppwrite method. The toAppwrite method in the model.dart file is also updated to include the isChild parameter and add the document ID ($id) to the returned map if isChild is false.