From b154eacac5fae5586a8fe7b1b15fb6d283a4abd2 Mon Sep 17 00:00:00 2001 From: wcjord <32568597+wcjord@users.noreply.github.com> Date: Tue, 18 Feb 2025 08:44:56 -0500 Subject: [PATCH] refactor(morph_meaining): simplifying morph response --- lib/pangea/morphs/morph_meaning/morph_info_response.dart | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/pangea/morphs/morph_meaning/morph_info_response.dart b/lib/pangea/morphs/morph_meaning/morph_info_response.dart index 4aa958eba..e734dfc95 100644 --- a/lib/pangea/morphs/morph_meaning/morph_info_response.dart +++ b/lib/pangea/morphs/morph_meaning/morph_info_response.dart @@ -2,13 +2,11 @@ import 'package:collection/collection.dart'; class MorphologicalTag { final String code; - final String l2Title; final String l1Title; final String l1Description; MorphologicalTag({ required this.code, - required this.l2Title, required this.l1Title, required this.l1Description, }); @@ -16,7 +14,6 @@ class MorphologicalTag { factory MorphologicalTag.fromJson(Map json) { return MorphologicalTag( code: json['code'], - l2Title: json['l2_title'], l1Title: json['l1_title'], l1Description: json['l1_description'], ); @@ -25,7 +22,6 @@ class MorphologicalTag { Map toJson() { return { 'code': code, - 'l2_title': l2Title, 'l1_title': l1Title, 'l1_description': l1Description, }; @@ -34,13 +30,11 @@ class MorphologicalTag { class MorphologicalFeature { final String code; - final String l2Title; final String l1Title; final List tags; MorphologicalFeature({ required this.code, - required this.l2Title, required this.l1Title, required this.tags, }); @@ -52,7 +46,6 @@ class MorphologicalFeature { return MorphologicalFeature( code: json['code'], - l2Title: json['l2_title'], l1Title: json['l1_title'], tags: tagsList, ); @@ -61,7 +54,6 @@ class MorphologicalFeature { Map toJson() { return { 'code': code, - 'l2_title': l2Title, 'l1_title': l1Title, 'tags': tags.map((tag) => tag.toJson()).toList(), };