CustomContentBodyWrite.fromJson constructor

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

Implementation

factory CustomContentBodyWrite.fromJson(Map<String, Object?> json) {
  return CustomContentBodyWrite(
    representation: json[r'representation'] != null
        ? CustomContentBodyWriteRepresentation.fromValue(
            json[r'representation']! as String)
        : null,
    value: json[r'value'] as String?,
  );
}