Primary.fromJson constructor
Implementation
Primary.fromJson(Map<String, dynamic> json) {
text = json['text'];
if (json['components'] != null) {
components = <Components>[];
json['components'].forEach((v) {
components!.add(Components.fromJson(v));
});
}
type = json['type'];
modifier = json['modifier'];
}