TeamColors class

Represents the primary and secondary colors associated with a team.

Constructors

TeamColors({String? primary, String? secondary})
TeamColors.fromJson(Map<String, dynamic> json)
Creates a TeamColors instance from a JSON Map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
primary String?
The primary color for the team.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary String?
The secondary color for the team.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the TeamColors instance to a JSON Map.
toString() String
A string representation of this object.
inherited

Operators

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