FeatureModel.fromJson constructor

FeatureModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FeatureModel.fromJson(Map<String, dynamic> json) {
  return FeatureModel(
    id: json['id'],
    title: json['name'],
    description: json['description'],
    voteCount: json['voteCount'],
    status: json['status'],
    publicNote: json['publicNote'],
    isVoted: json['isVoted'],
  );
}