ContentBodyCreate.fromJson constructor

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

Implementation

factory ContentBodyCreate.fromJson(Map<String, Object?> json) {
  return ContentBodyCreate(
    value: json[r'value'] as String? ?? '',
    representation: ContentBodyCreateRepresentation.fromValue(
        json[r'representation'] as String? ?? ''),
  );
}