Country class

Country data model

{
  "id": 5,
  "name": "Беларусь"
}

Constructors

Country({required int id, required String? name})
Country.fromJson(Map<String, dynamic> json)
factory
Country.fromRawJson(String str)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
id int
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({required int id, required String? name}) Country
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toRawJson() String
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override