RealmLocalised class
A class representing localized realm data.
This model provides detailed information about a World of Warcraft realm, including its tournament status, timezone, localized name, ID, region, category, locale, type, and slug.
- Annotations
-
- @immutable
Constructors
- RealmLocalised({required bool isTournament, required RealmTimezone timezone, required NameLocalised name, required int id, required RegionLocalised region, required NameLocalised category, required RealmLocale locale, required RealmTypeLocalised type, required String slug})
-
Creates an instance of RealmLocalised.
const
-
RealmLocalised.fromJson(Map<
String, dynamic> json) -
Creates an instance of RealmLocalised from a JSON map.
factory
- RealmLocalised.fromRawJson(String str)
-
Creates an instance of RealmLocalised from a JSON string.
factory
Properties
- category → NameLocalised
-
The category of the realm.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
The unique identifier of the realm.
final
- isTournament → bool
-
Indicates if the realm is a tournament realm.
final
- locale → RealmLocale
-
The locale of the realm.
final
- name → NameLocalised
-
The localized name of the realm.
final
- region → RegionLocalised
-
The region of the realm.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug → String
-
The unique slug of the realm.
final
- timezone → RealmTimezone
-
The timezone of the realm.
final
- type → RealmTypeLocalised
-
The type of the realm.
final
Methods
-
copyWith(
{bool? isTournament, RealmTimezone? timezone, NameLocalised? name, int? id, RegionLocalised? region, NameLocalised? category, RealmLocale? locale, RealmTypeLocalised? type, String? slug}) → RealmLocalised - Returns a copy of this instance with the given fields replaced by new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this instance to a JSON map.
-
toRawJson(
) → String - Converts this instance to a JSON string.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override