Covid19Country class

Several country informations.

Example JSON API responce of a List of Covid19Country:

[
  ...
  {
    "Country": "United Kingdom",
    "CountryCode": "GB",
    "Slug": "united-kingdom",
    "NewConfirmed": 33517,
    "TotalConfirmed": 1293715,
    "NewDeaths": 563,
    "TotalDeaths": 51020,
    "NewRecovered": 13,
    "TotalRecovered": 3031,
    "Date": "2020-11-13T07:55:56Z",
    "Premium": {}
  },
  {
    "Country": "United States of America",
    "CountryCode": "US",
    "Slug": "united-states",
    "NewConfirmed": 153496,
    "TotalConfirmed": 10552821,
    "NewDeaths": 919,
    "TotalDeaths": 242423,
    "NewRecovered": 54081,
    "TotalRecovered": 4051256,
    "Date": "2020-11-13T07:55:56Z",
    "Premium": {}
  },
  ...
]

Constructors

Covid19Country({String country, String countryCode, String slug, int newConfirmed, int totalConfirmed, int newDeaths, int totalDeaths, int newRecovered, int totalRecovered, String date, Map<String, dynamic> premium})
const

Properties

country String
final
countryCode String
final
date String
final
hashCode int
The hash code for this object. [...]
read-only, inherited
newConfirmed int
final
newDeaths int
final
newRecovered int
final
premium Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
slug String
final
totalConfirmed int
final
totalDeaths int
final
totalRecovered int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited