LabelDetails.fromJson constructor

LabelDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory LabelDetails.fromJson(Map<String, Object?> json) {
  return LabelDetails(
    label:
        Label.fromJson(json[r'label'] as Map<String, Object?>? ?? const {}),
    associatedContents: json[r'associatedContents'] != null
        ? LabeledContentPageResponse.fromJson(
            json[r'associatedContents']! as Map<String, Object?>)
        : null,
  );
}