RequestHeader
class
class RequestHeader {
String command;
String collection;
int requestId;
RequestHeader.fromMap(Map commandMap) {
command = commandMap['command'];
collection = commandMap['collection'];
requestId = commandMap['requestId'];
}
Map toMap() => {'command': command, 'collection': collection, 'requestId': requestId};
String toString() => 'RequestHeader(${toMap()})';
}
Constructors
new RequestHeader.fromMap(Map commandMap) #
RequestHeader.fromMap(Map commandMap) {
command = commandMap['command'];
collection = commandMap['collection'];
requestId = commandMap['requestId'];
}
Methods
Map toMap() #
Map toMap() => {'command': command, 'collection': collection, 'requestId': requestId};
String toString() #
Returns a string representation of this object.
String toString() => 'RequestHeader(${toMap()})';