VersionRestore.fromJson constructor

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

Implementation

factory VersionRestore.fromJson(Map<String, Object?> json) {
  return VersionRestore(
    operationKey: VersionRestoreOperationKey.fromValue(
        json[r'operationKey'] as String? ?? ''),
    params: VersionRestoreParams.fromJson(
        json[r'params'] as Map<String, Object?>? ?? const {}),
  );
}