ActiveContentVote.fromJson constructor

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

Implementation

factory ActiveContentVote.fromJson(Map<String, dynamic> json) {
  return ActiveContentVote(
    voter: json['voter'] ?? '',
    percent: json['percent'] ?? 0,
    reputation: json['reputation'] ?? 0,
    rshares: json['rshares'] ?? 0,
    time: json['time'] ?? '',
    weight: json['weight'] ?? 0,
  );
}