import 'package:sport/provider/lib/view_state_model.dart'; class FeedBackInfo { int? result; int? code; String? msg; List? data; FeedBackInfo({this.result, this.code, this.msg, this.data}); FeedBackInfo.fromJson(Map json) { result = json['result']; code = json['code']; msg = json['msg']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(new FeedBackInfoData.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['result'] = this.result; data['code'] = this.code; data['msg'] = this.msg; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class FeedBackInfoData { String? from; String? content; List? images; String? createdAt; int createTime = 0; FeedBackInfoData( {this.from, this.content, this.images, this.createdAt, this.createTime = 0}); FeedBackInfoData.fromJson(Map json) { from = json['from']; content = json['content']; images = json['images'].cast(); createdAt = json['createdAt']; createTime = json['createTime'] ?? 0; } Map toJson() { final Map data = new Map(); data['from'] = this.from; data['content'] = this.content; data['images'] = this.images; data['createdAt'] = this.createdAt; data['createTime'] = this.createTime; return data; } } class FeedTypeInfo { int? result; int? code; String? msg; List? data; FeedTypeInfo({this.result, this.code, this.msg, this.data}); FeedTypeInfo.fromJson(Map json) { try { result = json['result']; code = json['code']; msg = json['msg']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(new FeedTypeInfoData.fromJson(v)); }); } } catch (e, s) { printErrorStack(e, s); } } Map toJson() { final Map data = new Map(); data['result'] = this.result; data['code'] = this.code; data['msg'] = this.msg; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class FeedTypeInfoData { String? groupId; String? groupName; List? types; FeedTypeInfoData({this.groupId, this.groupName, this.types}); FeedTypeInfoData.fromJson(Map json) { groupId = json['groupId']; groupName = json['groupName']; if (json['types'] != null) { types = []; json['types'].forEach((v) { types!.add(new Types.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['groupId'] = this.groupId; data['groupName'] = this.groupName; if (this.types != null) { data['types'] = this.types!.map((v) => v.toJson()).toList(); } return data; } } class Types { String? typeId; String? typeName; Types({this.typeId, this.typeName}); Types.fromJson(Map json) { typeId = json['typeId']; typeName = json['typeName']; } Map toJson() { final Map data = new Map(); data['typeId'] = this.typeId; data['typeName'] = this.typeName; return data; } }