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.

29 lines
777 B

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