class EbayEntity { final String userId; final String storeName; final String storeDescription; final String storeUrl; final String storeUrlPath; final String? storeLastOpenedTimeRaw; final String storeLogoUrl; EbayEntity({ required this.userId, required this.storeName, required this.storeDescription, required this.storeUrl, required this.storeUrlPath, required this.storeLastOpenedTimeRaw, required this.storeLogoUrl, }); /// Create an instance from JSON map factory EbayEntity.fromJson(Map json) { return EbayEntity( userId: json['userid'] as String, storeName: json['store_name'] as String, storeDescription: json['store_description'] as String, storeUrl: json['store_url'] as String, storeUrlPath: json['store_url_path'] as String, storeLastOpenedTimeRaw: json['store_last_opened_time_raw'] as String?, storeLogoUrl: json['store_logo_url'] as String, ); } /// Convert instance to JSON map Map toJson() { return { 'userid': userId, 'store_name': storeName, 'store_description': storeDescription, 'store_url': storeUrl, 'store_url_path': storeUrlPath, 'store_last_opened_time_raw': storeLastOpenedTimeRaw, 'store_logo_url': storeLogoUrl, }; } }