CopyPageRequestDestination.fromJson constructor

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

Implementation

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