Cast.fromJson constructor

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

Read this payload from a decoded JSON object.

Implementation

factory Cast.fromJson(Map<String, dynamic> json) => Cast(
      ballot: Ballot.fromJson(json['ballot'] as Map<String, dynamic>),
      tag: json['tag'] as String,
      attestation: json['attestation'] as String,
    );