fromJson method
Implementation
@override
UPostLabel fromJson(Map<String, dynamic> json) {
try {
if (isSelfLabels(json)) {
return UPostLabel.selfLabels(
data: const SelfLabelsConverter().fromJson(json),
);
}
return UPostLabel.unknown(data: json);
} catch (_) {
return UPostLabel.unknown(data: json);
}
}