SearchModel.fromMap constructor

SearchModel.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SearchModel.fromMap(Map<String, dynamic> map) {
  return SearchModel(
    query: map['query'],
    trigger: map['trigger'],
    service: map['service'],
    mode: map['mode'],
    filters: map['filters'],
    ordering: map['ordering'],
    sessionId: map['sessionId'],
    userId: map['userId'],
    device: map['device'],
    os: map['os'],
    lang: map['lang'],
  );
}