CheermotesResponseData.fromJson constructor

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

Implementation

factory CheermotesResponseData.fromJson(Map<String, dynamic> json) => CheermotesResponseData(
      prefix: json["prefix"],
      tiers: List<Tier>.from(json["tiers"].map((v) => Tier.fromJson(v))),
      type: json["type"],
      order: json["order"],
      lastUpdated: DateTime.parse(json["last_updated"]),
      isCharitable: json["is_charitable"],
    );