DoubleCandidates.fromJson constructor

DoubleCandidates.fromJson(
  1. Map json_
)

Implementation

DoubleCandidates.fromJson(core.Map json_)
    : this(
        candidates: json_.containsKey('candidates')
            ? (json_['candidates'] as core.List)
                .map((value) => (value as core.num).toDouble())
                .toList()
            : null,
      );