Activity class

Simple object model for testing

Constructors

Activity(int key, ActivityType type, String activity, String link, int participants, double price, double accessibility)
Const default generative constructor.
const

Properties

accessibility double
A rating on a scale of 0 to 1.0 describing how possible an event is to do with zero being the most accessible.
final
activity String
Description of the queried activity.
final
hashCode int
The hash code for this object.
no setterinherited
key int
The primary key (id) of this activity.
final
Url to a page on the InterWeb where you can find this activity
final
participants int
The number of people that this activity could involve.
final
price double
A rating on a scale of 0 to 1.0 of the subjective cost of the event with zero being free.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ActivityType
The type of activity.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
The serializer required by the ApiEndpoint.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) Activity
The deserializer rquired by the ApiEndpoint.