Contact class

Annotations
  • @JsonSerializable()

Constructors

Contact({required String name, required String number})
Contact.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
number String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJson is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method _$UserToJson.
toString() String
A string representation of this object.
override

Operators

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