Map<String, dynamic> toJson() { final json = <String, dynamic>{}; if (label != null) { json[r'label'] = label; } if (links != null) { json[r'links'] = links; } return json; }