SuggestResponse.fromJson constructor

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

Implementation

factory SuggestResponse.fromJson(Map<String, dynamic> json) {
  return SuggestResponse(
    status: json['status'] != null
        ? SuggestStatus.fromJson(json['status'] as Map<String, dynamic>)
        : null,
    suggest: json['suggest'] != null
        ? SuggestModel.fromJson(json['suggest'] as Map<String, dynamic>)
        : null,
  );
}