ContentMetadata.fromJson constructor

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

Implementation

factory ContentMetadata.fromJson(Map<String, Object?> json) {
  return ContentMetadata(
    currentuser: json[r'currentuser'] != null
        ? ContentMetadataCurrentuser.fromJson(
            json[r'currentuser']! as Map<String, Object?>)
        : null,
    properties: json[r'properties'] != null
        ? GenericLinks.fromJson(json[r'properties']! as Map<String, Object?>)
        : null,
    frontend: json[r'frontend'] as Map<String, Object?>?,
    labels: json[r'labels'],
  );
}