ElectionsQueryResponse.fromJson constructor

ElectionsQueryResponse.fromJson(
  1. Map json_
)

Implementation

ElectionsQueryResponse.fromJson(core.Map json_)
    : this(
        elections: (json_['elections'] as core.List?)
            ?.map((value) => Election.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        kind: json_['kind'] as core.String?,
      );