Skip to content

Instantly share code, notes, and snippets.

@marcossevilla
Created February 4, 2021 17:28
Show Gist options
  • Save marcossevilla/e33d5bd3e5bf34ab56053c8ed2bfd352 to your computer and use it in GitHub Desktop.
Save marcossevilla/e33d5bd3e5bf34ab56053c8ed2bfd352 to your computer and use it in GitHub Desktop.
import 'package:models_sample/store_item.dart' as equatable;
import 'package:models_sample/store_item_model.dart' as freezed;
void main() {
final aModel = equatable.StoreItemModel.fromJson(
{'id': 0, 'name': 'Computer'},
);
final bModel = freezed.StoreItemModel.fromJson(
{'id': 0, 'name': 'Computer'},
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment