BlogPostBodyWrite.fromJson constructor

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

Implementation

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