Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:prepmilecookingfeed/model/activity_feed.dart';
- import 'package:cloud_firestore/cloud_firestore.dart';
- class Activity_Home_Mobile {
- final DocumentReference reference;
- final List<String> activity_feed;
- final String title;
- Activity_Home_Mobile.fromMap(Map<String, dynamic> map, {this.reference})
- : assert(map['title'] != null),
- assert(map['activity_feed'] != null),
- title = map['title'],
- activity_feed = map['activity_feed'];
- Activity_Home_Mobile.fromSnapshot(DocumentSnapshot snapshot)
- : this.fromMap(snapshot.data, reference: snapshot.reference);
- // @override
- // String toString() => "Record<$name:$votes>";
- }
- class Article {
- final String name;
- final String desc;
- final String likes;
- final String picture_id;
- final String quick_desc;
- final String steps;
- final DocumentReference reference;
- Article.fromMap(Map<String, dynamic> map, {this.reference})
- : assert(map['name'] != null),
- assert(map['votes'] != null),
- name = map['name'],
- likes = map['name'],
- desc = map['name'],
- picture_id = map['name'],
- quick_desc = map['name'],
- steps = map['votes'];
- Article.fromSnapshot(DocumentSnapshot snapshot)
- : this.fromMap(snapshot.data, reference: snapshot.reference);
- // @override
- // String toString() => "Record<$name:$votes>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement