Dart Documentationobjectory_server_implRequestHeader

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'];
}

Properties

String collection #

String collection

String command #

String command

int requestId #

int requestId

Methods

Map toMap() #

Map toMap() => {'command': command, 'collection': collection, 'requestId': requestId};

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => 'RequestHeader(${toMap()})';