PageBodyWrite.fromJson constructor

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

Implementation

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