EmbeddedContent.fromJson constructor

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

Implementation

factory EmbeddedContent.fromJson(Map<String, Object?> json) {
  return EmbeddedContent(
    entityId: (json[r'entityId'] as num?)?.toInt(),
    entityType: json[r'entityType'] as String?,
    entity: json[r'entity'] != null
        ? Embeddable.fromJson(json[r'entity']! as Map<String, Object?>)
        : null,
  );
}