| 123456789101112131415161718192021222324 |
- import 'package:json_annotation/json_annotation.dart';
- part 'CustomerService.g.dart';
- @JsonSerializable()
- class CustomerService {
- CustomerService(this.id, this.serviceName, this.icon, this.telephone,this.wchat,this.qq);
- int id;
- String serviceName;
- String icon;
- String telephone;
- String wchat;
- String qq;
- factory CustomerService.fromJson(Map<String, dynamic> json) =>
- _$CustomerServiceFromJson(json);
- Map<String, dynamic> toJson() => _$CustomerServiceToJson(this);
- // 命名构造函数
- CustomerService.empty();
- @override
- String toString() {
- return _$CustomerServiceToJson(this).toString();
- }
- }
|