HeaderModel class
model class for headers in the request.
- Annotations
Constructors
- HeaderModel({required String applicationId, required String methodId, required String versionNo, String? userId})
-
A model class for pine lab headers.
applicationId
assigned by pinelabs to your application. this application id is linked to your package id.userId
is the user id of the user which is logged-in.methodId
is the method id of the method which is called.versionNo
for pinelabs.const - HeaderModel.fromJson(String source)
-
get HeaderModel from json string.
factory
-
HeaderModel.fromMap(Map<
String, dynamic> map) -
get HeaderModel from
map
.factory
Properties
- applicationId → String
-
applicationId assigned by pinelabs to your application.
this application id is linked to your package id.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- methodId → String
-
methodId is the method id of the method which is called.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userId → String?
-
userId is the user id of the user which is logged-in.
final
- versionNo → String
-
versionNo for pinelabs.
final
Methods
-
copyWith(
{String? applicationId, String? userId, String? methodId, String? versionNo}) → HeaderModel - copy new instance of HeaderModel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - create HeaderModel to json string.
-
toMap(
) → Map< String, dynamic> - create HeaderModel to map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override