KuzzleResponse.fromJson constructor

KuzzleResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

KuzzleResponse.fromJson(Map<String, dynamic> json) {
  action = json['action'] as String?;
  collection = json['collection'] as String?;
  controller = json['controller'] as String?;
  deprecations = Deprecation.fromJsonList(json);
  error = json['error'] == null ? null : KuzzleError.fromJson(json);
  index = json['index'] as String?;
  protocol = json['protocol'] as String?;
  requestId = json['requestId'] as String?;
  result = json['result'] as dynamic;
  room = json['room'] as String?;
  scope = json['scope'] as String?;
  state = json['state'] as String?;
  status = json['status'] as int?;
  timestamp = json['timestamp'] as int?;
  users = json['users'] as String?;
  volatile = json['volatile'] as Map<String, dynamic>?;
}