You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
686 B

3 years ago
import 'package:equatable/equatable.dart';
import 'message.dart';
class RequestCategoryResult extends Equatable {
final String? message;
final int? statusCode;
//
final Message? query;
final Message? anwser;
RequestCategoryResult({this.message, this.statusCode, this.query, this.anwser})
: super();
static RequestCategoryResult fromJson(dynamic json) {
return RequestCategoryResult(
message: json["message"],
statusCode: json["status_code"],
query: Message.fromJsonRobotQuery(json["data"]["query"]),
anwser: Message.fromJsonRobotQuery(json["data"]["reply"]));
}
@override
List<Object> get props => [this.statusCode!];
}