ImageActivity.fromSnapshot constructor

ImageActivity.fromSnapshot(
  1. DocumentSnapshot<Map<String, dynamic>> snapshot
)

Implementation

ImageActivity.fromSnapshot(DocumentSnapshot<Map<String, dynamic>> snapshot) : super.fromSnapshot(snapshot) {
  var json = snapshot.data() as Map<String, Object?>;
  imagePath = json["imagePath"] as String;
  thumbPath = json["thumbPath"] as String?;
}