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.
22 lines
579 B
22 lines
579 B
import 'package:bytedesk_kefu/model/user.dart';
|
|
import 'package:equatable/equatable.dart';
|
|
|
|
class UserJsonResult extends Equatable {
|
|
//
|
|
final String? message;
|
|
final int? statusCode;
|
|
final User? user;
|
|
|
|
UserJsonResult({this.message, this.statusCode, this.user}) : super();
|
|
|
|
static UserJsonResult fromJson(dynamic json) {
|
|
return UserJsonResult(
|
|
message: json["message"],
|
|
statusCode: json["status_code"],
|
|
user: json["status_code"] == 200 ? User.fromJson(json['data']) : null);
|
|
}
|
|
|
|
@override
|
|
List<Object> get props => [this.user!.uid!];
|
|
}
|