Skip to content

Fixes #75 : Added Models and Entities

Suryansh Singh Tomar requested to merge PaRaDoX50/monumento:models into master

Fixes #75 (closed).

I have added UserModel, UserEntity, MonumentModel, MonumentEntity, BookmarkedMonumentModel, BookmarkedMonumentEntity.

Entities represent the data provided by our data provider(at present, Firestore). Models will contain plain dart classes which we will work within our Flutter Application. Having the separation between models and entities allows us to switch our data provider at any time and only have to change the toEntity and fromEntity methods in our model layer.

I have renamed the 'auth_id' firestore field to 'uid' because it looks more intuitive.

I have tested the app. Everything works fine.

Reference - Flutter BLoC TODO

Merge request reports