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.

19 lines
353 B

3 years ago
import 'package:equatable/equatable.dart';
class Category extends Equatable {
//
final String? cid;
final String? name;
//
Category({this.cid, this.name}) : super();
//
static Category fromJson(dynamic json) {
return Category(
cid: json['cid'], name: json['name']);
}
//
@override
List<Object> get props => [cid!];
}