CopyPageRequestBody.fromJson constructor

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

Implementation

factory CopyPageRequestBody.fromJson(Map<String, Object?> json) {
  return CopyPageRequestBody(
    storage: json[r'storage'] != null
        ? ContentBodyCreate.fromJson(
            json[r'storage']! as Map<String, Object?>)
        : null,
    editor2: json[r'editor2'] != null
        ? ContentBodyCreate.fromJson(
            json[r'editor2']! as Map<String, Object?>)
        : null,
  );
}